Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions features/json-modules.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 8 additions & 0 deletions features/json-raw.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions features/json-raw.yml.dist
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions features/json.yml
Original file line number Diff line number Diff line change
@@ -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
57 changes: 57 additions & 0 deletions features/json.yml.dist
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions groups/json.yml
Original file line number Diff line number Diff line change
@@ -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.