|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-02-05 12:09 UTC] cmb@php.net
-Package: Online Doc Editor problem
+Package: JSON related
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
Description: ------------ The documentation suggests that json_decode will only analyse down to the recursion level specified. But it does not say that when that happens it will just give up. However it would be better to alter the behaviour. It would be better if it analysed down to and returned results for the analysis down to the recursion level specified. e.g. json_decode('[3,4,{"X":"Y"}]', false, 1); should return array(3) [ 3 4 '{"X":"Y"}' ] This would allow analysis in sections for large objects and various other useful purposes. rather than null;