commit 069d6d1d9c0d576f6861ad69f29f59829239c04b
parent ceda955ba7a658554df0c70f4ad60f042ee63a6b
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 2 Nov 2022 11:46:00 -0700
json: update internal type definition to match JSMN
Fixes: ceda955ba7 ("shared: Update JSMN to latest version")
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/json.h b/src/json.h
@@ -27,10 +27,10 @@ struct json_iter;
*/
enum json_type {
JSON_UNDEFINED = 0,
- JSON_OBJECT = 1,
- JSON_ARRAY = 2,
- JSON_STRING = 3,
- JSON_PRIMITIVE = 4
+ JSON_OBJECT = 1 << 0,
+ JSON_ARRAY = 1 << 1,
+ JSON_STRING = 1 << 2,
+ JSON_PRIMITIVE = 1 << 3,
};
enum json_flag {