| ... | @@ -831,6 +831,9 @@ pub fn stringify(writer: anytype, value: anytype, options: std.json.Stringify.Op | ... | @@ -831,6 +831,9 @@ pub fn stringify(writer: anytype, value: anytype, options: std.json.Stringify.Op |
| 831 | .void => { | 831 | .void => { |
| 832 | try writer.writeAll("{}"); | 832 | try writer.writeAll("{}"); |
| 833 | }, | 833 | }, |
| | 834 | .@"enum" => { |
| | 835 | try T.stringifyJson(value, writer, options, @This()); |
| | 836 | }, |
| 834 | else => @compileError(@typeName(T)), | 837 | else => @compileError(@typeName(T)), |
| 835 | } | 838 | } |
| 836 | } | 839 | } |