diff options
author | Araq <rumpf_a@web.de> | 2018-08-16 12:30:00 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-16 12:30:00 +0200 |
commit | 2870ca5d717996d8451282de56c20418c89162a9 (patch) | |
tree | b9b866ac48680a8363bf3d30e9664b59c66e2a53 /lib/pure/json.nim | |
parent | e05d0ea0bbb6ea48fb5017deec28f558e7e15755 (diff) | |
parent | d82dd3c47d4aaaaea4bd1c1063d34006073bca38 (diff) | |
download | Nim-2870ca5d717996d8451282de56c20418c89162a9.tar.gz |
Merge branch 'araq-misc' into devel
Diffstat (limited to 'lib/pure/json.nim')
-rw-r--r-- | lib/pure/json.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim index b9279b18c..69ffb1796 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -1144,7 +1144,7 @@ proc processType(typeName: NimNode, obj: NimNode, result = quote do: ( verifyJsonKind(`jsonNode`, {JString, JNull}, astToStr(`jsonNode`)); - if `jsonNode`.kind == JNull: nil else: `jsonNode`.str + if `jsonNode`.kind == JNull: "" else: `jsonNode`.str ) of "biggestint": result = quote do: |