I have JSON stored in MySQL, which has multiple objects with no key. An example:
[
{
"glosses": [
"cascade, rapids, cataract"
],
"raw_glosses": [
"cascade, rapids, cataract"
]
},
{
"glosses": [
"waterfall"
],
"raw_glosses": [
"waterfall"
]
},
{
"glosses": [
"the sound of a strong water stream"
],
"raw_glosses": [
"the sound of a strong water stream"
]
}
]
How is it possible to select each object by numeric key? For example:
SELECT senses[0], senses[2] FROM table WHERE id = 1;