This is my JSON value
"order": {
"items": [{
"amount": 30000,
"product_name": "product A",
"quantity": 3,
}, {
"amount": 1000,
"product_name": "product B",
"quantity": 1,
}],
"currency": "USD"
}
I want get values of amount from the array using mysql queries. I tried select json_extract_path_text('order','items') but it fetches whole value
[{
"amount": 30000,
"product_name": "product A",
"quantity": 3,
}, {
"amount": 1000,
"product_name": "product B",
"quantity": 1,
}]
Can you help me?