sidorares / json-bigint

JSON.parse/stringify with bigints support
MIT License
790 stars 189 forks source link

"Object contains forbidden constructor property" Error #45

Closed Ayelit closed 3 years ago

Ayelit commented 3 years ago

We are using: json-bigint@1.0.0

JSON.parse is working, but JSONBigInt.parse is throwing the error "SyntaxError" - "Object contains forbidden constructor property". I can't give you the specific JSON, because it containing sensitive information, but if you need I can try to find another JSON.

But the general question is - why JSON.parse is working and yours not?

Ayelit commented 3 years ago

found the issue: https://github.com/sidorares/json-bigint#optionsprotoaction-boolean-default-error-possible-values-error-ignore-preserve