JSON.stringify() - JavaScript | MDN - MDN Web Docs
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
OverviewSyntaxDescriptionExamplesBrowser compatibilitySee also JSON.stringify() converts a value to the JSON notation that the value represents. Values are string…•Boolean, Number, String, and BigInt (obtainable via Object()) objects are converted to the corresponding primitive values during stringification, in accordance with the traditional conversion semantics. Symbol objects (obtainable via Object()) are treated as plain objects. •Attempting to serialize BigInt values will throw. However, if the BigInt has a toJSON() method (thr…•undefined, Function, and Symbol values are not valid JSON values. If any such values are encountered during conversion, they are either omitted (when found in an object) or changed to null (when found in an array). JSON.stringify() can return undefined when passing in "pure" values like …
JSON.stringify() converts a value to the JSON notation that the value represents. Values are string…•Boolean, Number, String, and BigInt (obtainable via Object()) objects are converted to the corresponding primitive values during stringification, in accordance with the traditional conversion semantics. Symbol objects (obtainable via Object()) are treated as plain objects.
•Attempting to serialize BigInt values will throw. However, if the BigInt has a toJSON() method (thr…•undefined, Function, and Symbol values are not valid JSON values. If any such values are encountered during conversion, they are either omitted (when found in an object) or changed to null (when found in an array). JSON.stringify() can return undefined when passing in "pure" values like …
DA: 99 PA: 56 MOZ Rank: 65