anjultyagi has asked for the wisdom of the Perl Monks concerning the following question:
I am working on to migrate the PHP code to PERL, I am facing issue while encoding the object into JSON.
it gives me an error : json text or perl structure exceeds maximum nesting level (max_depth set too low?).
I have tried the JSON:PP and JSON::XS but did not get success.
I tried to setup the max_depth value, after that process is keep running and running.
my $json = JSON::XS->new->utf8->max_depth([100]); #$json->encode($data) my $json_object = $json->encode($output);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: json text or perl structure exceeds maximum nesting level
by Corion (Patriarch) on Jun 01, 2018 at 07:43 UTC | |
by Anonymous Monk on Jun 01, 2018 at 15:55 UTC | |
|
Re: json text or perl structure exceeds maximum nesting level
by choroba (Cardinal) on Jun 01, 2018 at 07:42 UTC | |
|
Re: json text or perl structure exceeds maximum nesting level
by anjultyagi (Novice) on Jun 05, 2018 at 13:22 UTC |