Jordan Tucker

Results 207 comments of Jordan Tucker

I'm not sure I follow. If your JSON5 file is invalid, then you'll get errors when you try to compile it to JSON. A JSON file generated from a JSON5...

Okay, it makes more sense after reading the README for strip-json-comments. Comments are replaced with whitespace, meaning spaces and new lines where appropriate, to keep the lines and columns matching....

I don't think this makes sense for this project since JSON5 to JSON is not a one-to-one compilation even without comments. JSON5 documents are normalized to JSON as if you...

Good point. But that means that users would need to globally install minimist to use the JSON5 CLI. I think a better option is to decouple the library from the...

@cyrilletuzi Thanks for your interest. This is a breaking change, and I haven't had time to finalize a v3 for JSON5. Can you explain why the dependence on minimist is...

@cyrilletuzi Thanks for bringing these valid concerns to my attention. I'll see if I can devote some time to a v3 release soon.

Please see https://github.com/json5/json5/wiki/In-The-Wild

@chipweinberger I [agree](https://github.com/json5/json5-spec/issues/36#issuecomment-1139787561) that the JSON5 format should continue to allow for arbitrary-precision integers as it currently does. However, JSON also allows for arbitrary-precision integers, ECMAScript 2020 supports BigInt and...

@jcubic Both JSON and JSON5 are capable of representing BigInts because neither spec sets limits on the precision of integers. Both [RFC 8259](https://www.rfc-editor.org/rfc/rfc8259#section-6) and [RFC 7493](https://www.rfc-editor.org/rfc/rfc7493#section-2.2) recommend sticking to numbers...

I should mention that adding a `toJSON` method to `BigInt.prototype` or using a `replacer` function will not allow a user to generate a JSON or JSON5 document that contains numbers...