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
|
// Ensure remainder of file is empty
|
||||||
SkipWhiteSpace();
|
SkipWhiteSpace();
|
||||||
if (*BufPos != 0) {
|
if (Error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (*BufPos != 0) {
|
||||||
Error = true;
|
Error = true;
|
||||||
CharNo += BufPos-Mark;
|
CharNo += BufPos-Mark;
|
||||||
sprintf( ErrorText, "No content expected after Root object on line %d:%d", LineNo, CharNo );
|
sprintf( ErrorText, "No content expected after Root object on line %d:%d", LineNo, CharNo );
|
||||||
|
|||||||
Reference in New Issue
Block a user