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

JSON keys should always be in quotes #64

Closed JJ closed 4 years ago

JJ commented 4 years ago

However, this:

use v6;

use JSON::Fast;

say to-json 3 => 3;

writes

{
  3: 3
}

which is not correct. It should be:

{ "3": 3 }