Ver Fonte

Merge pull request #7742 from karroffel/json_parsing

JSON::parse reports errors on open-ended objects
Rémi Verschelde há 8 anos atrás
pai
commit
331ff9db77
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      core/io/json.cpp

+ 2 - 2
core/io/json.cpp

@@ -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;
 }