Skip to content

Instantly share code, notes, and snippets.

Created September 10, 2010 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/572883 to your computer and use it in GitHub Desktop.
Save anonymous/572883 to your computer and use it in GitHub Desktop.
pmichaud@orange:~/nqp-rx$ ./nqp json-test.nqp
> 123
"JSON" => 123
> [123, "abc"]
"JSON" => ResizablePMCArray (size:2) [
123,
"abc"
]
> { "a" : [ 1, 2, "bc"], "b":"jkl", "c":{"def":"ghi"} }
"JSON" => Hash {
"a" => ResizablePMCArray (size:3) [
1,
2,
"bc"
],
"b" => "jkl",
"c" => Hash {
"def" => "ghi"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment