15.0.0 (2024-08-09)
Features
- Optionally omit object key proto and others from parsed output (e2f8a7b)
BREAKING CHANGES
Object key __proto__
and other keys from Object.prototype
are included in the parsed object by default. Earlier, no keys from Object.prototype
were included. The new behaviour is consistent with JSON.parse
. If you need the old behaviour, add the argument ignore-prototype-keys
to the command line, or set the option ignorePrototypeKeys
to true
, when calling the parse
method. If you don't have under control, what will happens with the parsed object, you should consider setting ignoreProtoKey
to true
, when calling the parse
method, to prevent prototype pollution.