I have a json object stored in MySQL as:
{"PhysicalAddresses": {
"Entry": [
{"Key": "Home", "City": "City1", "State": "ST", "Street": "Some old street", "PostalCode": "00000", "CountryOrRegion": null},
{"Key": "Business", "City": "City2", "State": "ST", "Street": "A much nicer street", "PostalCode": "00000", "CountryOrRegion": null}
]}}
I want to grab the business address: something like
json_extract(column,"$.PhysicalAddresses.Entry[*](where Key=Business)")
What can I put into the "where Key=Business" to make this work, or is there no way to search JSON in MySQL this way?
Thanks