Creates a raw JSON representation that is embedded verbatim (unquoted) during serialization. Leverages native JSON.rawJSON (ES2024 / Node 21+) when available, with a fallback for older environments.
JSON.rawJSON
The raw JSON string
The raw JSON object
const raw = rawJSON('12345678901234567890'); Copy
const raw = rawJSON('12345678901234567890');
Creates a raw JSON representation that is embedded verbatim (unquoted) during serialization. Leverages native
JSON.rawJSON(ES2024 / Node 21+) when available, with a fallback for older environments.