consume any initial whitespace in JSON data.

This commit is contained in:
Joris Vink 2020-11-19 09:22:16 +01:00
parent 8008fe8b60
commit e712e3a951
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ kore_json_parse(struct kore_json *json)
if (json->root)
return (KORE_RESULT_OK);
json_consume_whitespace(json);
if (!json_peek(json, &ch))
return (KORE_RESULT_ERROR);