| Method | What it does |
| JsonText.parse(text) | Like JSON.parse, but numbers that wouldn't survive a round trip become RawNumber objects holding the literal (in engines with JSON source-text access: Chrome 114+, Safari 17.4+). A byte order mark is ignored. |
| JsonText.tryParse(text) | { value }, or { error: { message, line, column } } with the engine's message cleaned up. |
| JsonText.stringify(value, indent) | Like JSON.stringify, writing raw numbers back as they were. |
| JsonText.describe(value) | "object · 3 keys", "array · 10 items", "string"… |
| JsonText.isRawNumber(value) | Whether a value is a kept literal (its text is value.source). |
| new RawNumber(source) | A kept literal: source is its text. value instanceof RawNumber is the same test as isRawNumber. |