Important Update:

- JSONparseCore:
  - Bug fix: Always shows "No content after root" error
This commit is contained in:
Charl Wentzel
2019-11-04 13:15:04 +02:00
parent b5912123cc
commit d8f8d6851c

View File

@@ -364,7 +364,10 @@ bool CJSONparse::ReadFromBuffer( const char * BasePath )
// Ensure remainder of file is empty
SkipWhiteSpace();
if (*BufPos != 0) {
if (Error) {
return false;
}
else if (*BufPos != 0) {
Error = true;
CharNo += BufPos-Mark;
sprintf( ErrorText, "No content expected after Root object on line %d:%d", LineNo, CharNo );