aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/stringify_test.zig
AgeCommit message (Collapse)Author
2023-08-08std.json: stringify enum literals (#16742)Philipp Lühmann
2023-08-06std.json: josh review fixesJonathan Marler
* renamed enum_big_numbers_quoted option to enum_nonportable_numbers_as_strings * updated stringify doc to mention the option I also reversed the logic to determine whether an integer is nonportable, it seemed easier to reason about. I also took a stab at applying the new option to floats, but, I got stuck at trying to print large floats, not sure if Zig supports that yet.
2023-08-05std.json: fix roundtrip stringify for large integersJonathan Marler
std.json follows interoperability recommendations from RFC8259 to limit JSON number values to those that fit inside an f64. However, since Zig supports arbitrarily large JSON numbers, this breaks roundtrip data congruence. To appease both use cases, I've added an option `emit_big_numbers_quoted` to StringifyOptions. It's disabled by default which preserves roundtrip but can be enabled to favor interoperability.
2023-07-27std.json: WriteStream.print instead of writePreformattedJosh Wolfe
2023-07-21std.json: Unify stringify and writeStream (#16405)Josh Wolfe
2023-07-12Remove len parameter from splat in standard libantlilja
2023-07-10explicitly specify error set of `std.json.stringify`Techatrix
2023-07-03json: give enums a default stringify implementationEvin Yulo
2023-05-13std: Rewrite low-level json api to support streaming (#15602)Josh Wolfe