Handle openArrays in writeField

This commit is contained in:
Zahary Karadjov 2020-03-18 20:20:35 +02:00
parent ab53e009b9
commit 6350b72b5e
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 1 deletions

View File

@ -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))