You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llms-full.txt
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,8 @@ Browser-safe Web-only entry: `stream-json/web/disassembler.js` (no Node-stream i
280
280
Options: same as Parser (`packKeys`, `packStrings`, `packNumbers`, `streamKeys`, `streamStrings`, `streamNumbers`, `packValues`, `streamValues`). Also:
281
281
- `replacer` (function or array) — like `JSON.stringify` replacer.
282
282
283
+
Value handling follows `JSON.stringify`: `toJSON()` is honored; functions, symbols, and `undefined` are skipped in objects and become `null` in arrays; `NaN` and `±Infinity` become `null`. Exception: `bigint` is emitted as number tokens with all digits intact (JSON has no magnitude limit) instead of throwing.
284
+
283
285
```js
284
286
import {disassembler} from 'stream-json/disassembler.js';
285
287
import {stringer} from 'stream-json/stringer.js';
@@ -426,9 +428,10 @@ Replaces matching subobjects with a replacement value.
Copy file name to clipboardExpand all lines: llms.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ e.addEventListener('keyValue', ev => console.log(ev.detail));
121
121
All filters accept `{filter, pathSeparator, once, streamKeys, maxDepth}` options. `filter` can be a string, RegExp, or `(stack, chunk) => boolean`. `maxDepth` caps the JSON nesting depth a filter evaluates (default `1024`; a deeper token throws a `RangeError`, `Infinity` disables the limit).
122
122
123
123
- **`pick(options)`** — passes only matching subobjects, discards the rest.
124
-
- **`replace(options)`** — replaces matching subobjects. Extra option: `replacement` (function, value, or array of tokens).
124
+
- **`replace(options)`** — replaces matching subobjects. Extra option: `replacement` (function, token, or array of tokens).
0 commit comments