[Solved] How to read a single object from a json file containing multiple objects using python? [closed]

Try adding adding an if parameter to check if its the desired item that your looking for, then just record all of its information. import json with open(‘elements.json’) as f: data = json.load(f) choice = input(“Choose element: “) for element in data[‘Elements’]: if element[‘name’] == choice: for x, y in element.items(): print(x.title() + “-> ” … Read more

[Solved] Display database structure from Delphi (rad studio)

As already explained to you in comments, your while loop should look something like this: while **not** FData.FDQuery1.Eof do **begin** ShowMessage(FData.FDQuery1.Fields[0].ToString); **FData.FDQuery1.Next;** end; (minus the asterisks, of course). However, that would not overcome the problem that your SQL is incorrect. So, try this instead: In a new Delphi project, place a TFDConnection, TFDQuery, TDataSource, TDataSource … Read more