FreeRTOS/coreJSON

JSON_Validate() return JSONIllegalDocument on valid JSON

vasilchenkosv opened this issue · 2 comments

JSON_Validate() return JSONIllegalDocument for valid JSON document.

const char* json = "{\"obj\":{}}";
JSONStatus_t result = JSON_Validate(json, strlen(json));

Hi @vasilchenkosv

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.

Hi @vasilchenkosv , Closing the issue as the fix has been merged. Thank you