I would like to kindly ask for your help regarding the JSON Data on MySQL.
[
{"type" : "PET", "rate_period" : "MONTHLY", "amount" : 100.00, "included" : false},
{"type" : "PARKING", "rate_period" : "MONTHLY", "amount" : 150.00, "included" : false}
]
Here is the form of the data and I would like to extract the info for each category (type, rate_period, amount). Keep in mind that I am working on Metabase and does not recognize the Commands (SPLIT_PART, JSON_EXTRACT).
Any idea?
Thanks in advance!
What I actually tried:
SELECT p.deal_info::json->>'{}')::json->>'type'
FROM deals