From ab109eef451f7073fdeef2c2ad162514d4b7cb9a Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Mon, 20 May 2024 10:33:20 +0300 Subject: [PATCH] Fix mistake in %* macro (#288) * Fix mistake in %* macro * Update karax/jjson.nim Co-authored-by: Andreas Rumpf --------- Co-authored-by: Andreas Rumpf --- karax/jjson.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karax/jjson.nim b/karax/jjson.nim index d42d7a0..877d2a8 100644 --- a/karax/jjson.nim +++ b/karax/jjson.nim @@ -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].kind in {nnkIdent, nnkSym, nnkAccQuoted}: + let a = if key.kind in {nnkIdent, nnkSym, nnkAccQuoted}: newLit($key) else: key