Skip to content

Commit

Permalink
fix json regression D20191212T144944 (#12902) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored and Araq committed Dec 15, 2019
1 parent e4e74a5 commit e5ed4c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pure/json.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e5ed4c1

Please sign in to comment.