define all "expected" strings - 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 e49c809209014c1ab4e7c6b0921d82a5cbae5feb
 (DIR) parent 29f995fe694b10e97eb61afa046de1915f0f97fb
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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(-)
       ---
 (DIR) 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 (0);
       @@ -209,7 +210,7 @@ escchr:
                                        }
                                }
                                if (iskey)
       -                                expect = ":";
       +                                expect = EXPECT_OBJECT_KEY;
                                else
                                        expect = EXPECT_END;
                                break;