timo / json_fast

a naive imperative json parser in perl6, to evaluate performance against JSON::Tiny
Artistic License 2.0
26 stars 20 forks source link

Treat unknown types as strings, not objects #39

Closed ugexe closed 5 years ago

ugexe commented 6 years ago
$ perl6 -e 'say Rakudo::Internals::JSON.to-json({ "version" => v1.2 })'
{
  "version" : "1.2"
}
$ perl6 -e 'use JSON::Fast; say to-json({ "version" => v1.2 })'
{
  "version": {
    "0": null
  }
}
timo commented 5 years ago

this has gotten fixed somewhere along the way. thanks for the ticket in the mean time!