timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
809 stars 326 forks source link

response json public method #323

Open DancingGuy opened 4 years ago

DancingGuy commented 4 years ago

Suggestion: Update the wiki for Finding API calls to include the JSON method that I found at the same level as reply/dom/dict in my IDE's Object Inspector.

I found this:

def json(self): return json.dumps(self.dict())

example:

print("response JSON:") print(response.json())

returned:

basically the same as .dict() call except double instead of single quotes.

A minor thing but thought it was worth mentioning to be complete.

Thanks!

John