I have a column named SALE in a table named HOUSE which contains below JSON:
{
"houses":[
{
"houseId":"house100",
"houseLocation":"malvern",
"attribute":{
"colour":[
"white",
"grey"
],
"openForInspection":{
"fromTime":"0001",
"toTime":"2359"
}
},
"priceRange":null
}
]
}
I need to replace "priceRange":null
with {"fromAmount": "100","toAmount": "1000"}
{
"houses":[
{
"houseId":"house100",
"houseLocation":"malvern",
"attribute":{
"colour":[
"white",
"grey"
],
"openForInspection":{
"fromTime":"0001",
"toTime":"2359"
}
},
"priceRange":{
"fromAmount":"100",
"toAmount":"1000"
}
}
]
}
I tried many different queries but was unable to get the desired results