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
This commit is contained in:
Kruithne
2023-05-05 20:54:54 +01:00
committed by GitHub
parent 386639a4c5
commit e00017f7b8
2 changed files with 11 additions and 0 deletions

View File

@@ -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
-  

View File

@@ -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)