zig/lib/std/json
Andrew Kelley 7e2a26c0c4 std.io.Writer.printValue: rework logic
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.
2025-07-07 22:43:53 -07:00
..
dynamic.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
dynamic_test.zig std.io.Writer.printValue: rework logic 2025-07-07 22:43:53 -07:00
fmt.zig std.fmt: fully remove format string from format methods 2025-07-07 22:43:53 -07:00
hashmap.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
hashmap_test.zig x86_64: fix behavior of getValue 2023-10-26 21:45:58 -04:00
JSONTestSuite_test.zig x86_64: fix behavior of getValue 2023-10-26 21:45:58 -04:00
scanner.zig std.io: deprecated Reader/Writer; introduce new API 2025-07-07 22:43:51 -07:00
scanner_test.zig std.ArrayList: initial capacity based on cache line size 2025-02-13 00:19:03 -08:00
static.zig std.meta.intToEnum -> std.enums.fromInt 2025-05-13 07:28:41 +02:00
static_test.zig std.mem.bytesAsSlice: fix to support zero-bytes sized types 2025-03-24 22:08:05 +01:00
stringify.zig std.io.Writer.printValue: rework logic 2025-07-07 22:43:53 -07:00
stringify_test.zig std.io.Writer.printValue: rework logic 2025-07-07 22:43:53 -07:00
test.zig json: respect duplicate_field_behavior in std.json.Value.jsonParse 2024-07-03 15:34:59 -04:00