MK27 Posted June 13, 2010 Share Posted June 13, 2010 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 More sharing options...
MK27 Posted June 13, 2010 Author Share Posted June 13, 2010 Never mind, I found the bogus value in the input. Link to comment https://forums.phpfreaks.com/topic/204659-json_decode-issues/#findComment-1071506 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.