Skip to content

Instantly share code, notes, and snippets.

@tony-o
Created August 24, 2015 15:59
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 tony-o/b033edd8151b92863a99 to your computer and use it in GitHub Desktop.
Save tony-o/b033edd8151b92863a99 to your computer and use it in GitHub Desktop.
tonyo@imac ~/projects/zef$ perl6 -Ilib -MZef::Utils::JSON -e 'say to-json([{a => { b => "c", c => { d => 5.5, e => 4 } } }, a => 6], :human-readable(True));'
[
{
"a": {
"c": {
"e": 4,
"d": 5.5
},
"b": "c"
}
},
{
"a": 6
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment