Important Update:
- JSONparseCore: - Bug fix: Always shows "No content after root" error
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user