aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/scanner.zig
AgeCommit message (Collapse)Author
2025-07-19std.json: update to new I/O APIAndrew Kelley
also do a little bit of namespace cleanup
2025-07-07std.io: deprecated Reader/Writer; introduce new APIAndrew Kelley
2024-08-07fix partial strings getting dropped when multi-byte codepoints span input ↵Josh Wolfe
buffers
2023-10-27std.json: Parse -0 as a float instead of an integer (#17729)Linus Groh
This is consistent with `JSON.parse("-0")` in JavaScript, RFC 8259 doesn't specifically mention what to do in this case. If a negative zero is encoded the intention is likely to preserve the sign.
2023-08-15std.json: Fix decoding of UTF-16 surrogate pairs (#16830)Ryan Liptak
* std.unicode: Add more UTF-16 decoding functions This mostly makes parts of Utf16LeIterator reusable * std.json: Fix decoding of UTF-16 surrogate pairs Before this commit, there were 524,288 codepoints that would get decoded improperly. After this commit, there are 0. Fixes #16828
2023-07-21std.json: Unify stringify and writeStream (#16405)Josh Wolfe
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-05-13std: Rewrite low-level json api to support streaming (#15602)Josh Wolfe