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

Make decoding lazy #185

Open
ghost opened this issue Jul 31, 2015 · 1 comment
Open

Make decoding lazy #185

ghost opened this issue Jul 31, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 31, 2015

Now we have parse the whole JSON value into the JSON type, but then you have a lot of overhead when you have a lot of properties that you don't use. I tried this with a type DecodableValue that has a helper method to cast the data of the DecodableValue to the type that you want. DecodableValue replaces JSON and also saves a lot of looping and switches.

@gfontenot
Copy link
Collaborator

This is something we're definitely looking to do, especially since we're starting to use Argo with more complex JSON structures, like those adhering to JSON:API.

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

1 participant