json: update internal type definition to match JSMN

Fixes: ceda955ba7 ("shared: Update JSMN to latest version")
This commit is contained in:
James Prestwood 2022-11-02 11:46:00 -07:00 committed by Denis Kenzior
parent ceda955ba7
commit 069d6d1d9c
1 changed files with 4 additions and 4 deletions

View File

@ -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 {