Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 12, 2016 18:28
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 zoffixznet/78064c45fe9619e5063f to your computer and use it in GitHub Desktop.
Save zoffixznet/78064c45fe9619e5063f to your computer and use it in GitHub Desktop.
$ perl6 -MJSON::Fast -e 'say to-json [<foo bar ber>, { :meow<foo>, :foo([<bar>, {:2ber, :moor([<foo>])}]) }]'
[
[
"foo",
"bar",
"ber"
],
{
"foo": [
"bar",
{
"moor": [
"foo"
],
"ber": 2
}
],
"meow": "foo"
}
]
$ perl6 -e 'say to-json [<foo bar ber>, { :meow<foo>, :foo([<bar>, {:2ber, :moor([<foo>])}]) }]'
[
[
"foo",
"bar",
"ber"
],
{
"foo" : [
"bar",
{
"moor" : [
"foo"
],
"ber" : 2
}
],
"meow" : "foo"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment