aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/dynamic_test.zig
AgeCommit message (Collapse)Author
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-07-19std.json: update to new I/O APIAndrew Kelley
also do a little bit of namespace cleanup
2025-07-07std.io.Writer.printValue: rework logicAndrew Kelley
Alignment and fill options only apply to numbers. Rework the implementation to mainly branch on the format string rather than the type information. This is more straightforward to maintain and more straightforward for comptime evaluation. Enums support being printed as decimal, hexadecimal, octal, and binary. `formatInteger` is another possible format method that is unconditionally called when the value type is struct and one of the integer-printing format specifiers are used.
2024-07-25Add `std.json.ParseOptions.parse_numbers` to preserve float precision (#20744)Eugene-Dash
2024-07-03json: respect duplicate_field_behavior in std.json.Value.jsonParseTechatrix
2024-03-09std.json: update tests to match new floating point formattingMarc Tiehuis
2023-11-19lib: correct unnecessary uses of 'var'mlugg
2023-11-09std.math: Add isPositiveZero() and isNegativeZero()Linus Groh
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-10-26x86_64: fix behavior of `getValue`Jacob Young
Old behavior renamed to `getValueIfFree`.
2023-10-23x86_64: implement enough to pass unicode testsJacob Young
* implement vector comparison * implement reduce for bool vectors * fix `@memcpy` bug * enable passing std tests
2023-10-22Revert "Revert "Merge pull request #17637 from jacobly0/x86_64-test-std""Jacob Young
This reverts commit 6f0198cadbe29294f2bf3153a27beebd64377566.
2023-10-22Revert "Merge pull request #17637 from jacobly0/x86_64-test-std"Andrew Kelley
This reverts commit 0c99ba1eab63865592bb084feb271cd4e4b0357e, reversing changes made to 5f92b070bf284f1493b1b5d433dd3adde2f46727. This caused a CI failure when it landed in master branch due to a 128-bit `@byteSwap` in std.mem.
2023-10-21x86_64: fix bugs and disable erroring testsJacob Young
2023-09-11json: respect max_value_len when parsing std.json.Value (#17107)Techatrix
2023-08-17std.json: avoid stale pointers when parsing Value (#16864)Ian Johnson
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-07-21std.json: Unify stringify and writeStream (#16405)Josh Wolfe
2023-07-07add `jsonParseFromValue` to `std.json.Value` (#16324)Techatrix
2023-06-20std: json.parseFromValue() (#15981)Josh Wolfe
2023-06-19std: Support user-provided jsonParse method. Unify json.Parser and ↵Josh Wolfe
json.parse* (#15705)
2023-05-13std: Rewrite low-level json api to support streaming (#15602)Josh Wolfe