Created
September 25, 2012 07:43
-
-
Save fuba/3780488 to your computer and use it in GitHub Desktop.
JSON 1.15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ perl -MJSON -e 'my $t={test=> 1};warn objToJson($t);warn "$t->{test}";warn objToJson($t);' | |
{"test":1} at -e line 1. | |
1 at -e line 1. | |
{"test":1} at -e line 1. | |
$ perl -MJSON::XS -e 'my $t={test=> 1};warn encode_json($t);warn "$t->{test}";warn encode_json($t);' | |
{"test":1} at -e line 1. | |
1 at -e line 1. | |
{"test":"1"} at -e line 1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment