JavaScript JSON Refernce
The following table provides an overview of commonly used static methods in JavaScript’s JSON
object.
Method | Description |
---|---|
JSON.isRawJSON() | Determines if a value is a raw JSON object. This method is used for identifying raw JSON values. |
JSON.parse() | Parses a JSON-formatted string and converts it into a JavaScript object. |
JSON.rawJSON() | Creates a raw JSON object that is not automatically stringified when serialized. |
JSON.stringify() | Converts a JavaScript object or value to a JSON-formatted string. |