aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarroffel2017-02-06 19:22:42 +0000
committerKarroffel2017-02-06 19:22:42 +0000
commit85793ccc4a03ec575c9fdf603585fc42207ad40b (patch)
treea1008c5dd44a9155cc9b9351c20ff48e58deb2b6
parentc508b5b2e14c43a6e7a629f0d655a0e5ddcd6cd7 (diff)
downloadgodot-85793ccc4a03ec575c9fdf603585fc42207ad40b.tar.gz
godot-85793ccc4a03ec575c9fdf603585fc42207ad40b.tar.zst
godot-85793ccc4a03ec575c9fdf603585fc42207ad40b.zip
JSON::parse reports errors on open-ended objects
-rw-r--r--core/io/json.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/json.cpp b/core/io/json.cpp
index f42155bc9..fac8ebe72 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;
}