zig/lib/std/json
Ian Johnson f3f554b9b8
std.json: avoid stale pointers when parsing Value (#16864)
Closes #16861

Using `alloc_if_needed` when parsing a `Value` allows receiving a token
which points to the buffer of the underlying `Reader`. This token will
no longer be valid after the `Reader`'s buffer is refilled, which will
happen with large values. Using `alloc_always` avoids this issue by
ensuring the returned tokens always own their data independently of the
underlying buffer.
2023-08-17 07:52:46 -04:00
..
dynamic.zig
dynamic_test.zig
hashmap.zig
hashmap_test.zig
JSONTestSuite_test.zig
scanner.zig
scanner_test.zig
static.zig
static_test.zig
stringify.zig
stringify_test.zig
test.zig