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

Handling huge JSON payload #27

Open
dinamic opened this issue Aug 1, 2018 · 0 comments
Open

Handling huge JSON payload #27

dinamic opened this issue Aug 1, 2018 · 0 comments

Comments

@dinamic
Copy link

dinamic commented Aug 1, 2018

I love the library and I have used it in a few projects now. Up till recently I had no issues with it, but now things changed.

I am working on a project where files that are bigger than 10Mb would get received and I would like to transform those to corresponding objects in PHP. This library uses the default json_decode implementation, which works nice, but for big objects is a no go because of memory consumptions.

Even worse is that the current code base uses @json_decode() to suppress any error messages with malformed json, so if php terminates the process because of no enough memory the developer would have no clue on what happened.

Seems like there are solutions around. For example:

I would love it if we come up with a way of using one of those approaches in the default visitor. Do you guys have any thoughts on this?

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

No branches or pull requests

1 participant