Skip to content
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

Parsing API response into objects #5

Open
ddudnik opened this issue Jun 29, 2015 · 0 comments
Open

Parsing API response into objects #5

ddudnik opened this issue Jun 29, 2015 · 0 comments

Comments

@ddudnik
Copy link
Contributor

ddudnik commented Jun 29, 2015

This is more of a conceptual discussion that an issue.

What are your thoughts about parsing API response into populated Python objects? So the user of the SDK will interact with more strictly specified objects instead of free-form JSON. Or, maybe, parse only a fraction of data, the one which is used more often or referred to by ID from other parts of response (like Places, Carriers, Agents etc.).

Of course it adds additional overhead for supporters since all the JSON 'schema' changes should be reflected in the code.

I can see the advantages and drawbacks in both approaches, so would be great to know what you guys have in mind.

Cheers,
Denis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants