Fix JSON array parser separators (#819)

This commit is contained in:
Franco Maciel
2018-12-23 15:17:36 -03:00
committed by Florian Rival
parent 2d314ff51b
commit 87acba5105

View File

@@ -461,7 +461,7 @@ size_t ParseJSONObject(const std::string& jsonStr,
{
std::string str;
size_t endPos = pos;
const std::string separators = " \n,}";
const std::string separators = " \n,}]";
while (endPos < jsonStr.length() &&
separators.find_first_of(jsonStr[endPos]) == std::string::npos) {
endPos++;