aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/encoding/json/marshal.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin
index acf12331a..c4e348aa8 100644
--- a/core/encoding/json/marshal.odin
+++ b/core/encoding/json/marshal.odin
@@ -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 {