1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00
This commit is contained in:
Niels Lohmann
2018-08-17 23:09:45 +02:00
parent b5c54b41fd
commit e33b31e6aa
26 changed files with 97 additions and 18880 deletions

View File

@ -4348,6 +4348,13 @@ class json_sax_dom_callback_parser
}
else
{
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (not ref_stack.back())
{
return {false, nullptr};
}
assert(ref_stack.back()->is_array() or ref_stack.back()->is_object());
if (ref_stack.back()->is_array())
{