From 6350b72b5eda69f7ccfa57a94fd420509dbf6f49 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 18 Mar 2020 20:20:35 +0200 Subject: [PATCH] Handle openArrays in writeField --- json_serialization/writer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_serialization/writer.nim b/json_serialization/writer.nim index 31cdc0b..4a29de5 100644 --- a/json_serialization/writer.nim +++ b/json_serialization/writer.nim @@ -181,7 +181,7 @@ proc writeValue*(w: var JsonWriter, value: auto) = w.stream.append $value elif value is SomeFloat: append $value - elif value is (seq or array): + elif value is (seq or array or openArray): w.writeArray(value) elif value is (object or tuple): w.beginRecord(type(value))