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 std.json: avoid stale pointers when parsing Value (#16864) 2023-08-17 07:52:46 -04:00
dynamic_test.zig std.json: avoid stale pointers when parsing Value (#16864) 2023-08-17 07:52:46 -04:00
hashmap.zig std.json: fix key allocation in HashMap for streaming json parsing (#16422) 2023-07-22 22:33:50 +00:00
hashmap_test.zig std.json: fix key allocation in HashMap for streaming json parsing (#16422) 2023-07-22 22:33:50 +00:00
JSONTestSuite_test.zig std: Rewrite low-level json api to support streaming (#15602) 2023-05-13 14:31:53 -04:00
scanner.zig std.json: Fix decoding of UTF-16 surrogate pairs (#16830) 2023-08-15 09:11:59 -04:00
scanner_test.zig std.json: Fix decoding of UTF-16 surrogate pairs (#16830) 2023-08-15 09:11:59 -04:00
static.zig std.json: add generic hash map that parses/stringifies with arbitrary string keys (#16366) 2023-07-09 22:18:59 -04:00
static_test.zig std.json: support parsing json at comptime using FixedBufferAllocator (#16488) 2023-07-22 18:52:26 -04:00
stringify.zig std.json: stringify enum literals (#16742) 2023-08-08 23:26:46 +00:00
stringify_test.zig std.json: stringify enum literals (#16742) 2023-08-08 23:26:46 +00:00
test.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00