-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get Json response of the Object #12
Comments
We're discussing this on Intercom |
I have made changes to sdk for my solution. If you feel perfect please add this to the SDK to get appropriate DICT response which enable user to easily serialize the objects. Please update this as soon as possible. we need to integrate new sdk `
class BestAvailableObjects:
|
Hi, Correct me if I'm wrong, but I don't think we need to add to_json methods. You can convert to json like this: from json import JSONEncoder
class MyEncoder(JSONEncoder):
def default(self, o):
return o.__dict__
best_available_objects_as_json = MyEncoder().encode(best_available_objects) |
perfect thanks @mroloux |
How to get Json response of the Object
The text was updated successfully, but these errors were encountered: