Closed ashdsi closed 8 months ago
Hi @ashdsi
for quite easy question it is not an easy answer. It the end, it would depend on the question why exactly you want to have the JSON response from odata api at hand. I will point out some generic recommendation since there is no one good answer here.
vars(data)
For the specifics of working with _next keys, it is here - https://github.com/SAP/python-pyodata/blob/master/docs/usage/querying.rst#query-server-side-paginations-using-the-__next-fieldHi @ashdsi I am closing this since no response for a week and this is essentially a generic question issue. Feel free to reopen if necessary.
From the browser, when I access the URL https://services.odata.org/V2/Northwind/Northwind.svc/Customers?$format=json, I get the JSON response with
results
and_next
objects. I'm expecting to get a similar output in python v3.9 but the output format is different.How should I pass the parameter for format=json and where, so I can get the same output structure as what the browser returns with
_results
fieldHere's the example python script and it's response
Sample Output