remove check for types and depth of object key string that cannot happen anymore - json2tsv - JSON to TSV converter
(HTM) git clone git://git.codemadness.org/json2tsv
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 29f995fe694b10e97eb61afa046de1915f0f97fb
(DIR) parent b3cce42c19a31a92b232d9e6a2bdb973169a7878
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 23 Oct 2019 19:40:36 +0200
remove check for types and depth of object key string that cannot happen anymore
Diffstat:
M json.c | 4 ----
1 file changed, 0 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/json.c b/json.c
@@ -116,10 +116,6 @@ handlechr:
switch (c) {
case ':':
- /* not in an object or key in object is not a string */
- if (!depth || nodes[depth - 1].type != TYPE_OBJECT ||
- nodes[depth].type != TYPE_STRING)
- JSON_INVALID();
iskey = 0;
expect = EXPECT_VALUE;
break;