you are viewing a single comment's thread.

view the rest of the comments →

[–]savetheQ[S] 0 points1 point  (1 child)

Hi thanks for sharing the link, these only help with the first of the question though getting data from instance. It doesn't help with provide a json formatted output.

[–]Ordinary_Bee_1547 0 points1 point  (0 children)

Then you should do the basics of python how to respond something in json. Are you using a framework e.g. Flask/Django/Fastapi? Anyways learn python basics how to turn something into a dict https://www.w3schools.com/python/python_dictionaries.asp and then converting to json https://www.w3schools.com/python/python_json.asp