issue-40396 - Added missing error strings to JSON parsing when array or object is never closed.
This commit is contained in:
parent
0cd98ec7e1
commit
8f84dfa91d
|
@ -371,6 +371,7 @@ Error JSON::_parse_array(Array &array, const CharType *p_str, int &index, int p_
|
||||||
need_comma = true;
|
need_comma = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r_err_str = "Expected ']'";
|
||||||
return ERR_PARSE_ERROR;
|
return ERR_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -433,6 +434,7 @@ Error JSON::_parse_object(Dictionary &object, const CharType *p_str, int &index,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r_err_str = "Expected '}'";
|
||||||
return ERR_PARSE_ERROR;
|
return ERR_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue