From b852d9412b052a255c742c38c6f1342787f9c49c Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sat, 14 Dec 2019 01:15:31 -0800 Subject: [PATCH] fix json regression D20191212T144944 --- lib/pure/json.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pure/json.nim b/lib/pure/json.nim index 5b6cf0856ea07..319a7b7ffe5e2 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -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: