https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html
# 表字段名: templates # json内容: [{"expression": "true", "id": 2}] SELECT * FROM t_rule WHERE json_contains(templates, json_object('id', 1)) ; SELECT * FROM t_rule WHERE json_contains(templates, json_object('expression', 'true')) ;