From 85793ccc4a03ec575c9fdf603585fc42207ad40b Mon Sep 17 00:00:00 2001 From: Karroffel Date: Mon, 6 Feb 2017 19:22:42 +0000 Subject: [PATCH] JSON::parse reports errors on open-ended objects --- core/io/json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/io/json.cpp b/core/io/json.cpp index f42155bc944..fac8ebe72bb 100644 --- a/core/io/json.cpp +++ b/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; }