I have a JSON with this structure:
[
{
"myKey":[
{
"value":1
},
{
"value":2
}
],
"secondKey":[
{
"value":1
},
{
"value":2
}
]
}
]
And I need to add objects evaluating the key, for example, for myKey add:
[
{
"myKey":[
{
"value":1
},
{
"value":2
},
{
"new value":3
}
],
"secondKey":[
{
"value":1
},
{
"value":2
}
]
}
]
What would be the correct way to do it, considering that I'm just using postgres select and procedures.