mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
fix json regression D20191212T144944 (#12902) [backport]
This commit is contained in:
committed by
Andreas Rumpf
parent
e4e74a5565
commit
e5ed4c1b7d
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user