DiceDB / dice

DiceDB is an in-memory, real-time, and reactive database with Redis and SQL support optimized for modern hardware and building real-time applications.
https://dicedb.io/
Other
5.48k stars 757 forks source link

Handle root path '.' correctly in JSON.OBJLEN command #603

Open JyotinderSingh opened 2 weeks ago

JyotinderSingh commented 2 weeks ago

The current implementation of JSON.OBJLEN does not correctly handle the root path '.'. This needs to be fixed to align with Redis behavior.

Current behavior: When using JSON.OBJLEN doc ., the library is unable to parse it and returns an error.

Expected behavior: JSON.OBJLEN doc . should return the length of the complete parent object, consistent with Redis behavior.

Additional context:

Tasks:

AshikBN commented 2 weeks ago

@JyotinderSingh pls assign this to me.

JyotinderSingh commented 2 weeks ago

@JyotinderSingh pls assign this to me.

Assigned.

HassanAarzoo commented 1 week ago

@AshikBN Are you working on this? If not I would like to pick this up

AshikBN commented 1 week ago

i have not yet, you can start if you are interested @JyotinderSingh Can this be assigned to @HassanAarzoo Please

kapishmalik commented 1 week ago

@JyotinderSingh I am also interested to work on this issue