in reply to Re: how to get Perl hash in C#
in thread how to get Perl hash in C#
When I try to run this:
I only get the root level data and the rest are null!my $JSON = JSON->new->utf8; $JSON->convert_blessed(1); $JSON->allow_blessed(1); $JSON->pretty(1); my $json = $JSON->encode(\%arr_hash); print "JSON [\n $json\n ]\n";
Same thing happends when I try this:JSON [ { "ace_context" : [ null, null, null, null, null, null, null, null ], "server_nmap" : [ null, null, ... null ] }
BUT when I run this:my $json = $JSON->encode(\@ace_context);
print Dumper(\%arr_hash);
the output contains everything.
How the JSON code should look like in order to "export" everything to JSON-format data?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to get Perl hash in C#
by tobyink (Canon) on Jan 24, 2014 at 14:12 UTC | |
by Hossein (Acolyte) on Jan 27, 2014 at 08:02 UTC | |
by Corion (Patriarch) on Jan 27, 2014 at 08:10 UTC | |
by Hossein (Acolyte) on Jan 28, 2014 at 07:04 UTC |