I have a json and i want to extract the value by a key. Not sure how I can implement it. Any suggestion is appreciated.
set @JSON =
'[
{
"key": "address",
"value": "xxx"
},
{
"key": "addr_lng",
"value": 100.22
},
{
"key": "addr_lat",
"value": 300.22
}
]';
I want to extract the value by key addr_lat
, but don't want change the json structure.
300.22