Merge pull request #6085 from dozn/json-null-marshal

[encoding/json] Fix Unicode Output When Marshalling
This commit is contained in:
Laytan
2025-12-31 03:24:36 +01:00
committed by GitHub

View File

@@ -122,9 +122,9 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
case runtime.Type_Info_Rune:
r := a.(rune)
io.write_byte(w, '"') or_return
io.write_escaped_rune(w, r, '"', true) or_return
io.write_byte(w, '"') or_return
io.write_byte(w, '"') or_return
io.write_escaped_rune(w, r, '"', for_json = true) or_return
io.write_byte(w, '"') or_return
case runtime.Type_Info_Float:
switch f in a {