Hi,
I've stored data in a json type column in mysql 5.7.9. The json data has an attribute named "@xsi:type", what is the mysql syntax to extract that attribute from the json data?
The following works:
select json_extract(json_object, '$.description') from json_table;
But the following does NOT work:
select json_extract(json_object, '$.@xsi:type') from json_table;
Do I need to escape the @ and : in the attribute name? How?
I've stored data in a json type column in mysql 5.7.9. The json data has an attribute named "@xsi:type", what is the mysql syntax to extract that attribute from the json data?
The following works:
select json_extract(json_object, '$.description') from json_table;
But the following does NOT work:
select json_extract(json_object, '$.@xsi:type') from json_table;
Do I need to escape the @ and : in the attribute name? How?