Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions json_serialization.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ requires "nim >= 1.6.0",
"serialization",
"stew >= 0.2.0",
"results"
requires "https://github.com/nitely/nim-faststreams#b8737b832ac7a7bb44beffe6a56500ed85e9a93c"

let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)
Expand Down
2 changes: 1 addition & 1 deletion json_serialization/writer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ proc writeValue*[V: not void](w: var JsonWriter, value: V) {.raises: [IOError].}
w.streamElement(s):
# TODO Implement writeText for floats
# to avoid the allocation here:
s.write $value
s.writeText value

elif value is seq or(value is distinct and distinctBase(value) is seq):
autoSerializeCheck(Flavor, seq, typeof(value)):
Expand Down
Loading