|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re^3: Getting error while decoding JSON object via POST methodby tobyink (Prior) |
| on Feb 06, 2013 at 09:59 UTC ( #1017371=note: print w/ replies, xml ) | Need Help?? |
|
This error message occurs when you pass the empty string or an undefined variable to be decoded by JSON, JSON::PP or JSON::XS. So I'd suggest that even with the updated code, the problem is related to the initialization of $jsonText - it appears to be undef.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||