JSON source text access
Limited availability
To serialize and parse JSON in a lossless way, JSON.stringify()
handles rawJSON
values and JSON.parse()
's reviver callback takes a source context parameter.
To learn more, see
JSON.isRawJSON(),
JSON.rawJSON() at MDN.
Compatibility
- Chrome 114 Released on 2023-05-30
- Chrome Android 114 Released on 2023-05-30
- Edge 114 Released on 2023-06-02
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- JSON.parse source text access (#sec-json-object), from TC39 (Ecma International).