JSON source text access
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.
Status
Baseline Newly Available (since 2025-03-31)
This feature is expected to reach Baseline Widely Available status on: 2027-10-01
MDN documentation
Specifications
- JSON.parse source text access (#sec-json-object), from TC39 (Ecma International).
Browser support
- Chrome 114 Released on 2023-05-30
- Chrome Android 114 Released on 2023-05-30
- Edge 114 Released on 2023-06-02
- Firefox 135 Released on 2025-02-04
- Firefox for Android 135 Released on 2025-02-04
- Safari 18.4 Released on 2025-03-31
- Safari on iOS 18.4 Released on 2025-03-31
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist