diff --git a/features/json-modules.yml b/features/json-modules.yml index 5a4dc4f424d..5d308ea0bae 100644 --- a/features/json-modules.yml +++ b/features/json-modules.yml @@ -1,6 +1,7 @@ name: JSON import attributes description: 'Module `import ... with { type: "json" }` statements load JSON data. Also known as JSON module scripts and formerly known as import assertions.' spec: https://html.spec.whatwg.org/multipage/webappapis.html#json-module-script +group: json compat_features: # TODO: Include when https://github.com/web-platform-dx/web-features/issues/1173 # is resolved. diff --git a/features/json-raw.yml b/features/json-raw.yml new file mode 100644 index 00000000000..e2305514ce3 --- /dev/null +++ b/features/json-raw.yml @@ -0,0 +1,8 @@ +name: JSON source text access +description: 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. +group: json +spec: https://tc39.es/proposal-json-parse-with-source/#sec-json-object +compat_features: + - javascript.builtins.JSON.isRawJSON + - javascript.builtins.JSON.parse.reviver_parameter_context_argument + - javascript.builtins.JSON.rawJSON diff --git a/features/json-raw.yml.dist b/features/json-raw.yml.dist new file mode 100644 index 00000000000..e4ecce632fc --- /dev/null +++ b/features/json-raw.yml.dist @@ -0,0 +1,13 @@ +# Generated from: json-raw.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "114" + chrome_android: "114" + edge: "114" +compat_features: + - javascript.builtins.JSON.isRawJSON + - javascript.builtins.JSON.parse.reviver_parameter_context_argument + - javascript.builtins.JSON.rawJSON diff --git a/features/json.yml b/features/json.yml new file mode 100644 index 00000000000..7ddff692442 --- /dev/null +++ b/features/json.yml @@ -0,0 +1,12 @@ +name: JSON +description: The `JSON` API provides static methods for parsing values from and converting values to JavaScript Object Notation (JSON), a serialization format for objects, arrays, numbers, strings, Boolean values, and null. +group: json +spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-json-object +status: + compute_from: javascript.builtins.JSON +compat_features: + - javascript.builtins.JSON + - javascript.builtins.JSON.json_superset + - javascript.builtins.JSON.parse + - javascript.builtins.JSON.stringify + - javascript.builtins.JSON.stringify.well_formed_stringify diff --git a/features/json.yml.dist b/features/json.yml.dist new file mode 100644 index 00000000000..690db3b709e --- /dev/null +++ b/features/json.yml.dist @@ -0,0 +1,57 @@ +# Generated from: json.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2015-07-29 + baseline_high_date: 2018-01-29 + support: + chrome: "3" + chrome_android: "18" + edge: "12" + firefox: "3.5" + firefox_android: "4" + safari: "4" + safari_ios: "4" +compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "3" + # chrome_android: "18" + # edge: "12" + # firefox: "3.5" + # firefox_android: "4" + # safari: "4" + # safari_ios: "4" + - javascript.builtins.JSON + - javascript.builtins.JSON.parse + - javascript.builtins.JSON.stringify + + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "66" + # chrome_android: "66" + # edge: "79" + # firefox: "62" + # firefox_android: "62" + # safari: "12" + # safari_ios: "12" + - javascript.builtins.JSON.json_superset + + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "72" + # chrome_android: "72" + # edge: "79" + # firefox: "64" + # firefox_android: "64" + # safari: "12.1" + # safari_ios: "12.2" + - javascript.builtins.JSON.stringify.well_formed_stringify diff --git a/groups/json.yml b/groups/json.yml new file mode 100644 index 00000000000..4e7a97cd17b --- /dev/null +++ b/groups/json.yml @@ -0,0 +1,3 @@ +name: JSON +parent: javascript +# description: Features for the JSON format itself and related features, such as the JSON JavaScript namespace and JSON import attributes.