I am using postgres DB in my application. Consider below is my json object in postgres table
{
"key1":"abc",
"key2":{
"key3":"xyz"
}
}
If i execute the below query
UPDATE table SET data = (data - 'key1');
key1 got deleted and updated in DB. But i need to delete key3(which is inside key2), i couldn't find any exact query to delete that. Kindly post your ideas.