diff --git a/tiny_gltf.h b/tiny_gltf.h index ab6d5c80..777fdef8 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -2119,9 +2119,9 @@ void JsonParse(JsonDocument &doc, const char *str, size_t length, bool throwExc = false) { #ifdef TINYGLTF_USE_RAPIDJSON (void)throwExc; - doc.Parse(str, length); + doc.Parse(str, length); #else - doc = detail::json::parse(str, str + length, nullptr, throwExc); + doc = detail::json::parse(str, str + length, nullptr, throwExc, true, true); #endif } #endif // !TINYGLTF_USE_CUSTOM_JSON