| ... | @@ -134,6 +134,8 @@ pub fn encodeJsonStringChars(chars: []const u8, options: StringifyOptions, write | ... | @@ -134,6 +134,8 @@ pub fn encodeJsonStringChars(chars: []const u8, options: StringifyOptions, write |
| 134 | } | 134 | } |
| 135 | } | 135 | } |
| 136 | | 136 | |
| | 137 | /// If `value` has a method called `jsonStringify`, this will call that method instead of the |
| | 138 | /// default implementation, passing it the `options` and `out_stream` parameters. |
| 137 | pub fn stringify( | 139 | pub fn stringify( |
| 138 | value: anytype, | 140 | value: anytype, |
| 139 | options: StringifyOptions, | 141 | options: StringifyOptions, |