zig 0.15.1 seems to have removed std.json.stringify, is there an equivalent replacement?
I'm noticing in the source code, they are doing this:
fn testStringify(expected: []const u8, v: anytype, options: Options) !void {
var buffer: [4096]u8 = undefined;
var w: Writer = .fixed(&buffer);
try value(v, options, &w);
try std.testing.expectEqualStrings(expected, w.buffered());
}
but the fixed writer would fail if the output text size of v would be greater than 4096, right? Maybe there's a writer that could be created with an allocator, but I'm having a hard time figuring out where all these replacements are (and knowing if I'm even going down the correct route in the first place).
Is there something more simple I'm not seeing?