JSON::parse reports errors on open-ended objects
This commit is contained in:
parent
5cc63dee0f
commit
d5071a940d
1 changed files with 2 additions and 2 deletions
|
@ -374,7 +374,7 @@ Error JSON::_parse_array(Array &array,const CharType *p_str,int &index, int p_le
|
|||
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ERR_PARSE_ERROR;
|
||||
|
||||
}
|
||||
|
||||
|
@ -446,7 +446,7 @@ Error JSON::_parse_object(Dictionary &object,const CharType *p_str,int &index, i
|
|||
}
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue