Merge branch 'devel' into araq-big-refactoring
This commit is contained in:
commit
02f01470ab
1 changed files with 3 additions and 0 deletions
|
|
@ -832,6 +832,9 @@ proc toJson(x: NimNode): NimNode {.compiletime.} =
|
|||
result = newCall(bindSym"newJObject")
|
||||
of nnkNilLit:
|
||||
result = newCall(bindSym"newJNull")
|
||||
of nnkPar:
|
||||
if x.len == 1: result = toJson(x[0])
|
||||
else: result = newCall(bindSym"%", x)
|
||||
else:
|
||||
result = newCall(bindSym"%", x)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue