JSON_Validate() return JSONIllegalDocument on valid JSON
vasilchenkosv opened this issue · 2 comments
vasilchenkosv commented
JSON_Validate() return JSONIllegalDocument for valid JSON document.
const char* json = "{\"obj\":{}}";
JSONStatus_t result = JSON_Validate(json, strlen(json));
moninom1 commented
Thank you for raising the bug. Yes it seems like incorrect value [JSONIllegalDocument] is returned for this example.
We will look into the problem and possible solutions internally, meanwhile if you have a quick solution for the issue, You can also contribute by raising a PR.
moninom1 commented
Hi @vasilchenkosv , Closing the issue as the fix has been merged. Thank you