diff --git a/src/util/Uuid.zig b/src/util/Uuid.zig index f65eb68..1ef5e52 100644 --- a/src/util/Uuid.zig +++ b/src/util/Uuid.zig @@ -33,6 +33,10 @@ pub fn format(value: Uuid, comptime _: []const u8, _: std.fmt.FormatOptions, wri }); } +pub fn jsonStringify(value: Uuid, _: std.json.StringifyOptions, writer: anytype) !void { + try std.fmt.format(writer, "\"{}\"", .{value}); +} + pub const ParseError = error{ InvalidCharacter, InvalidLength,