gabrielsousa has asked for the wisdom of the Perl Monks concerning the following question:
i have this string
$VAR1 = \bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' );
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo "malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./test-mail365.pl line 102.'
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./test-mail365.pl line 102.
$VAR1 = \bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' );
i have this error:use JSON; $decodejattch = $decoded2->{HasAttachments}; $decodejattch = JSON::decode_json $decodejattch;
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo "malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./test-mail365.pl line 102.'
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./test-mail365.pl line 102.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to decode JSON::PP::Boolean
by tangent (Parson) on Dec 06, 2017 at 16:46 UTC | |
Re: how to decode JSON::PP::Boolean
by Corion (Patriarch) on Dec 06, 2017 at 15:58 UTC | |
Re: how to decode JSON::PP::Boolean
by Eily (Monsignor) on Dec 06, 2017 at 16:08 UTC |
Back to
Seekers of Perl Wisdom