Skip to content

Commit

Permalink
Update karax/jjson.nim
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
  • Loading branch information
planetis-m and Araq authored May 18, 2024
1 parent 13008b4 commit b54b793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karax/jjson.nim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ proc toJson(x: NimNode): NimNode {.compiletime.} =
for i in 0 ..< x.len:
x[i].expectKind nnkExprColonExpr
let key = x[i][0]
let a = if x[i][0].kind in {nnkIdent, nnkSym, nnkAccQuoted}:
let a = if key.kind in {nnkIdent, nnkSym, nnkAccQuoted}:
newLit($key)
else:
key
Expand Down

0 comments on commit b54b793

Please sign in to comment.