Intent to prototype: JSON.parse with source

369 views
Skip to first unread message

Bryan Thrall

unread,
Dec 7, 2023, 6:14:07 PM12/7/23
to dev-pl...@mozilla.org

Summary:

`JSON.parse with source`is a TC39 proposal [1] at Stage 3 of the TC39 standardization process.

It extends JSON.parse behavior to grant reviver functions access to the input source text and extending JSON.stringify behavior to support object placeholders for raw JSON text primitives.

Bug:

Platform Coverage:
All

Specification:

Standards Body:
TC39

Preference:
Will be available in the JS shell using the option `--enable-json-parse-with-source` when Bug 1860887 lands. Will be preffable under `javascript.options.experimental.enable_json_parse_with_source` when Bug 1865406 lands.

-- 
Bryan Thrall
Senior Software Engineer
Mozilla
Reply all
Reply to author
Forward
0 new messages