Title: Support `proposal-json-parse-with-source` (`JSON.rawJSON()`, `JSON.isRawJSON()`, `context` parameter of `reviver` function, etc...) · Issue #61330 · microsoft/TypeScript · GitHub
Open Graph Title: Support `proposal-json-parse-with-source` (`JSON.rawJSON()`, `JSON.isRawJSON()`, `context` parameter of `reviver` function, etc...) · Issue #61330 · microsoft/TypeScript
X Title: Support `proposal-json-parse-with-source` (`JSON.rawJSON()`, `JSON.isRawJSON()`, `context` parameter of `reviver` function, etc...) · Issue #61330 · microsoft/TypeScript
Description: ⚙ Compilation target ESNext ⚙ Library ESNext Missing / Incorrect Definition JSON.rawJSON() appears to be missing. Apologies if I've missed something or if this is the wrong place to raise an issue. I searched through both PRs and issues ...
Open Graph Description: ⚙ Compilation target ESNext ⚙ Library ESNext Missing / Incorrect Definition JSON.rawJSON() appears to be missing. Apologies if I've missed something or if this is the wrong place to raise an issue....
X Description: ⚙ Compilation target ESNext ⚙ Library ESNext Missing / Incorrect Definition JSON.rawJSON() appears to be missing. Apologies if I've missed something or if this is the wrong place to raise an is...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/61330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support `proposal-json-parse-with-source` (`JSON.rawJSON()`, `JSON.isRawJSON()`, `context` parameter of `reviver` function, etc...)","articleBody":"### ⚙ Compilation target\n\nESNext\n\n### ⚙ Library\n\nESNext\n\n### Missing / Incorrect Definition\n\n`JSON.rawJSON()` appears to be missing. Apologies if I've missed something or if this is the wrong place to raise an issue. I searched through both PRs and issues in both this repo and https://github.com/microsoft/TypeScript-DOM-lib-generator but couldn't find any references for it.\n\n\n\n### Sample Code\n\n```TypeScript\n// https://www.typescriptlang.org/play/?target=99#code/MYewdgzgLgBAHjAvDAUgZQPIDkB0AnAQwHd1sAKAcgAYKBKIA\nconst x = JSON.rawJSON('0')\n```\n\n### Documentation Link\n\nPer https://github.com/microsoft/TypeScript/issues/19044 it seems like TypeScript's policy is to support Stage 3+ features and [proposal-json-parse-with-source](https://github.com/tc39/proposal-json-parse-with-source) is stage 3. (If I misunderstood the typescript teams policy on experimental features it would be awesome to have this documented in https://github.com/Microsoft/TypeScript/wiki/FAQ)\n\nMDN also documents this feature [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/rawJSON).\n\nAdditionally, it appears to have been implemented [in V8](https://github.com/v8/v8/commit/e2f909764780a62017788e69f85c89d915185f40) and [in webkit](https://github.com/WebKit/WebKit/pull/7057).\n\nTesting experimentally, it is available in node 22+ and in the latest Chromium as well:\n\n\n\n\n\n","author":{"url":"https://github.com/jarpoole","@type":"Person","name":"jarpoole"},"datePublished":"2025-03-02T23:13:24Z","url":"https://github.com/microsoft/TypeScript/issues/61330"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6435008f-502e-d0b5-eb09-0c5066fddc16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1B2:269AD9:C12805:103845C:6B00F929 |
| html-safe-nonce | d7dc02294dfe46d81cc708c406696a22c8888c8208a195a5da1b41f1fe2a1ca4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUIyOjI2OUFEOTpDMTI4MDU6MTAzODQ1Qzo2QjAwRjkyOSIsInZpc2l0b3JfaWQiOiI3MzA3NjUzMDg5NDU5MjM5MjA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e3a56f8d81b62ea4c1e66fc03c6a652ee06ecb4fcaa90c9935b18d39b04f0268 |
| hovercard-subject-tag | issue:2889849642 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/61330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82cc55e9265b63e7da851fed300211a66222209e127944b76e987cde9ab9b209/microsoft/TypeScript/issues/61330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82cc55e9265b63e7da851fed300211a66222209e127944b76e987cde9ab9b209/microsoft/TypeScript/issues/61330 |
| og:image:alt | ⚙ Compilation target ESNext ⚙ Library ESNext Missing / Incorrect Definition JSON.rawJSON() appears to be missing. Apologies if I've missed something or if this is the wrong place to raise an issue.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jarpoole |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width