diff options
author | 2023-05-05 20:54:54 +0100 | |
---|---|---|
committer | 2023-05-05 12:54:54 -0700 | |
commit | e00017f7b87d7db56b7a86c1a4e14e91cfe27dcc (patch) | |
tree | 9d5ee99df970e483280b5d4ab4b8dec8bb6dba9f | |
parent | 386639a4c5049862b7ceb1522ea1512ac8f9a43f (diff) | |
download | bun-e00017f7b87d7db56b7a86c1a4e14e91cfe27dcc.tar.gz bun-e00017f7b87d7db56b7a86c1a4e14e91cfe27dcc.tar.zst bun-e00017f7b87d7db56b7a86c1a4e14e91cfe27dcc.zip |
Add missing JSON API to Web APIs page (#2799)
* Add missing JSON API to Web APIs page
Unless I'm missing something obvious, it appears that Bun has the JSON API (`stringify`/`parse`) but is not listed anywhere in the documentation.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON
* Include JSON in global docs
-rw-r--r-- | docs/api/globals.md | 6 | ||||
-rw-r--r-- | docs/runtime/web-apis.md | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/api/globals.md b/docs/api/globals.md index f5fc411dc..891f13fc9 100644 --- a/docs/api/globals.md +++ b/docs/api/globals.md @@ -194,6 +194,12 @@ Bun implements the following globals. --- +- [`JSON`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON) +- Web +- + +--- + - [`MessageEvent`](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent) - Web - diff --git a/docs/runtime/web-apis.md b/docs/runtime/web-apis.md index 8ebc070b8..82108de31 100644 --- a/docs/runtime/web-apis.md +++ b/docs/runtime/web-apis.md @@ -36,6 +36,11 @@ The following Web APIs are partially or completely supported. --- +- JSON +- [`JSON`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON) + +--- + - Timeouts - [`setTimeout`](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout) [`clearTimeout`](https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout) |