jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

Support for 'modern' JSON (without quotes) #69

Closed BaronChen closed 7 years ago

BaronChen commented 7 years ago

It seems like the library currently doesn't support 'modern' like: { foo : "foo" }

Is there a plan to support this?

jprichardson commented 7 years ago
{ foo : "foo" }

Is not valid JSON AFAIK. Do you have a source for this?

BaronChen commented 7 years ago

Refer to http://json5.org/. This is just a proposed extension to JSON. I don't think it is necessary to have. That's why I ask. Thanks.

jprichardson commented 7 years ago

I'm familiar with JSON5, but JSON5 is not JSON. I'd love it if JSON adopted features from JSON5, but until that happens, this library will keep things simple and just use JSON.