limbo/core/json
Mikaël Francoeur b3f0947acd
fix: JSON_INSERT now correctly inserts new keys in nested objects
When using JSON_INSERT with a path like '$.a.b.d' on an object like
'{"a": {"b": {"c": 5}}}', the function was incorrectly returning the
input unchanged instead of inserting the new key.

The root cause was that InsertNew mode was being applied to all path
segments. The fix uses Upsert mode for intermediate segments and only
applies InsertNew for the final segment.

🤖 Generated with [Claude Code](https://claude.com/claude-code), and cleaned up by Mikaël
2025-12-10 13:58:58 -05:00
..
cache.rs convert json functions to use AsValueRef 2025-11-11 16:11:46 -03:00
error.rs fix clippy errors for rust 1.88.0 (auto fix) 2025-07-12 18:58:41 +03:00
jsonb.rs fix: JSON_INSERT now correctly inserts new keys in nested objects 2025-12-10 13:58:58 -05:00
mod.rs fix: escape backslashes in json_object string values 2025-12-03 21:30:59 +01:00
ops.rs core/json: Improve error handling in ops.rs 2025-11-23 14:12:09 +02:00
path.rs core/json: Improve error handling in path.rs 2025-11-23 14:12:09 +02:00
vtab.rs core/json: Improve error handling in vtab.rs 2025-11-23 14:12:09 +02:00