JSON.MERGE not working on non-existing path

Let’s say I have a json key named “sample-key”, and I want to add a new property: age: 28, so the command would look like this:

JSON.MERGE 'sample-key' $.person '{"age": 28}'

The command above works well in regular redis insight, however when using a dragonflydb redis, it will not work. It will return an “OK” message but it does not actually adding the new properties.

Hey there, thank you for reporting this. I will give it a try and raise an issue if necessary. In the meantime, can you provide more information (and maybe an easy way) to reproduce, such as your environment (Linux version, container, etc.) and the Dragonfly version?