fix: null value for string is ""

This commit is contained in:
Lucas F. 2026-01-23 15:01:33 -03:00
parent 8bf9902ebf
commit 20e4bacab0

View file

@ -457,7 +457,7 @@ pub const Renderer = struct {
_ = self;
var w = buf.writer(alloc);
switch (value) {
.null => try w.writeAll("null"),
.null => try w.writeAll(""),
.bool => |b| try w.print("{}", .{b}),
.int => |n| try w.print("{d}", .{n}),
.float => |f| try w.print("{d}", .{f}),