Add support for BiggestInt in JSON unmarshal macro.
This commit is contained in:
parent
2108dcf0d5
commit
b829092c9e
1 changed files with 6 additions and 0 deletions
|
|
@ -1551,6 +1551,12 @@ proc processType(typeName: NimNode, obj: NimNode,
|
|||
verifyJsonKind(`jsonNode`, {JInt}, astToStr(`jsonNode`));
|
||||
`jsonNode`.num.int
|
||||
)
|
||||
of "biggestint":
|
||||
result = quote do:
|
||||
(
|
||||
verifyJsonKind(`jsonNode`, {JInt}, astToStr(`jsonNode`));
|
||||
`jsonNode`.num
|
||||
)
|
||||
of "bool":
|
||||
result = quote do:
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue