fix json regression D20191212T144944 (#12902) [backport]
This commit is contained in:
parent
e4e74a5565
commit
e5ed4c1b7d
1 changed files with 1 additions and 0 deletions
|
|
@ -1055,6 +1055,7 @@ when defined(nimFixedForwardGeneric):
|
|||
jsonPath.setLen originalJsonPathLen
|
||||
|
||||
proc initFromJson[T](dst: var ref T; jsonNode: JsonNode; jsonPath: var string) =
|
||||
verifyJsonKind(jsonNode, {JObject, JNull}, jsonPath)
|
||||
if jsonNode.kind == JNull:
|
||||
dst = nil
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue