Throw out_of_range.411 for JSON Patch add into a null parent (#5917)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MKJf48vnGtTE25KscmjfaW
Signed-off-by: Niels Lohmann <niels.lohmann@gmail.com>
This commit is contained in:
Niels LohmannandClaude Sonnet 5.5 committed 2026-10-25 13:22:10 +00:00
1 parent 2a56afc714
commit cdbd969fe4
6 files changed
+24 -2

No files matched your search

+1 -1
View File
@@ -42793,7 +42793,6 @@ public:
switch (parent.m_data.m_type)
{
case value_t::null:
case value_t::object:
{
// use operator[] to add value
@@ -42825,6 +42824,7 @@ public:
// the parent of an "add" target must be an object or array
// (see #4292)
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer: