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
..
2023-08-02 12:00:14 -07:00
2023-07-16 18:32:52 -07:00
2023-04-22 13:09:15 +03:00
2023-07-31 03:49:21 -04:00
2023-07-31 10:51:44 -07:00
2023-06-25 14:51:03 -07:00
2023-06-10 20:42:30 -07:00
2023-08-02 12:00:14 -07:00
2023-08-06 18:12:05 +02:00
2023-07-07 11:57:09 -07:00