You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/std/json/stringify.zig
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -483,6 +483,7 @@ pub fn WriteStream(
483
483
/// * If the union declares a method `pub fn jsonStringify(self: *@This(), jw: anytype) !void`, it is called to do the serialization instead of the default behavior. The given `jw` is a pointer to this `WriteStream`.
484
484
/// * Zig `enum` -> JSON string naming the active tag.
485
485
/// * If the enum declares a method `pub fn jsonStringify(self: *@This(), jw: anytype) !void`, it is called to do the serialization instead of the default behavior. The given `jw` is a pointer to this `WriteStream`.
486
+
/// * If the enum is non-exhaustive, unnamed values are rendered as integers.
486
487
/// * Zig untyped enum literal -> JSON string naming the active tag.
487
488
/// * Zig error -> JSON string naming the error.
488
489
/// * Zig `*T` -> the rendering of `T`. Note there is no guard against circular-reference infinite recursion.
0 commit comments