Jump to content

json_decode issues


MK27

Recommended Posts

In the docs, it says json_decode will return NULL if "the encoded data is deeper than the recursion limit".  I'm having a problem where it returns NULL simply because the data is too long -- and it is not even very long, say 9K.

 

Also, I've tried adding a depth argument, but it appears this option is depreciated ("PHP Warning:  json_decode() expects at most 2 parameters, 3 given").

 

I have, nb, run diff on text file versions of the source at the point where the array is too long (it's the difference between 40 items, 7650 bytes, and 41 items, 7891 bytes).  The only difference is the extra item.

 

Anyone recognize this issue?  Is there any further error reporting I can get?

Link to comment
https://forums.phpfreaks.com/topic/204659-json_decode-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.