-
-
Save zoffixznet/78064c45fe9619e5063f to your computer and use it in GitHub Desktop.
This file contains 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
$ 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