mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
Currently std.zon.stringify.serialize always escapes Unicode characters, while std.json.stringify by default does not. This change adds an escape_non_ascii option that matches the JSON serializer's behavior. `escape_non_ascii` is false by default, and will only escape unicode once set to true. Closes [#23535](https://github.com/ziglang/zig/issues/23535) Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30710 Reviewed-by: Ryan Liptak <squeek502@noreply.codeberg.org> |
History
|
|
|---|---|---|
| .. | ||
| parse.zig | ||
| Serializer.zig | ||
| stringify.zig | ||