diff --git a/include/nlohmann/detail/input/json_sax.hpp b/include/nlohmann/detail/input/json_sax.hpp index fd1ba76c..66651a90 100644 --- a/include/nlohmann/detail/input/json_sax.hpp +++ b/include/nlohmann/detail/input/json_sax.hpp @@ -304,7 +304,7 @@ class json_sax_dom_parser return &(ref_stack.back()->m_value.array->back()); } - assert(ref_stack.back()->is_object()) + assert(ref_stack.back()->is_object()); assert(object_element); *object_element = BasicJsonType(std::forward(v)); return object_element; @@ -590,7 +590,7 @@ class json_sax_dom_callback_parser } // object - assert(ref_stack.back()->is_object()) + assert(ref_stack.back()->is_object()); // check if we should store an element for the current key assert(not key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 010ac75e..92293fb0 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -2982,7 +2982,7 @@ class json_sax_dom_parser return &(ref_stack.back()->m_value.array->back()); } - assert(ref_stack.back()->is_object()) + assert(ref_stack.back()->is_object()); assert(object_element); *object_element = BasicJsonType(std::forward(v)); return object_element; @@ -3268,7 +3268,7 @@ class json_sax_dom_callback_parser } // object - assert(ref_stack.back()->is_object()) + assert(ref_stack.back()->is_object()); // check if we should store an element for the current key assert(not key_keep_stack.empty()); const bool store_element = key_keep_stack.back();