Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created August 29, 2015 09:49
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 tadzik/b10f4469b0adc2c16cf1 to your computer and use it in GitHub Desktop.
Save tadzik/b10f4469b0adc2c16cf1 to your computer and use it in GitHub Desktop.
┌─[tadzik@yavin]─[~]
└─[%]─> cat json-bug.pl
my $json = '{"foo":[]}';
my ($tiny, $fast);
{
use JSON::Tiny;
$tiny = from-json $json;
}
{
use JSON::Fast;
$fast = from-json $json;
}
say $tiny.perl;
say $fast.perl;
┌─[tadzik@yavin]─[~]
└─[%]─> perl6 json-bug.pl
{:foo($[])}
{:foo($[])}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment