I have a mySQL database with a table named “orders”. In this table I have a column named ids which is JSON.
The JSON looks like
[
{
"type" : "master",
"id" : "100"
},
{
"type" : "slave",
"id" : "101"
},
{
"type" : "slave",
"id" : "102"
},
....
]
There is always only one entry a master. I need a select, which gives me the id of the object which is of type master.
How can I do this?