Skip to content

Commit 43eb6e4

Browse files
committed
apply dumpHook for JsonNode
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent 3b8cd1c commit 43eb6e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/openparser/json.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ macro toStaticJson*(v: typed, opts: static JsonOptions = nil): untyped =
223223
let tInst = v.getTypeInst()
224224
if tInst.kind == nnkSym and tInst.strVal == "JsonNode":
225225
return quote do:
226-
$`v` # if it's already a JsonNode, just return it as-is without further processing
226+
dumpHook(v)
227227
# retrieve the implementation of typed `v`
228228
var valImpl = v.getType()
229229
var objName = v.getTypeInst()

0 commit comments

Comments
 (0)