Introduction
Introduction Statistics Contact Development Disclaimer Help
define all "expected" strings - json2tsv - JSON to TSV converter
git clone git://git.codemadness.org/json2tsv
Log
Files
Refs
README
LICENSE
---
commit e49c809209014c1ab4e7c6b0921d82a5cbae5feb
parent 29f995fe694b10e97eb61afa046de1915f0f97fb
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 23 Oct 2019 21:36:27 +0200
define all "expected" strings
Diffstat:
M json.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/json.c b/json.c
@@ -83,6 +83,7 @@ capacity(char **value, size_t *sz, size_t cur, size_t inc)
#define EXPECT_STRING "\""
#define EXPECT_END "}],"
#define EXPECT_OBJECT_STRING EXPECT_STRING "}"
+#define EXPECT_OBJECT_KEY ":"
#define EXPECT_ARRAY_VALUE EXPECT_VALUE "]"
#define JSON_INVALID() do { ret = JSON_ERROR_INVALID; goto end; } while …
@@ -209,7 +210,7 @@ escchr:
}
}
if (iskey)
- expect = ":";
+ expect = EXPECT_OBJECT_KEY;
else
expect = EXPECT_END;
break;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.