【发布时间】:2019-05-08 02:58:39
【问题描述】:
"cuisines": [
{
"id": 61,
"name": "mexican"
},
{
"id": 63,
"name": "Indian"
},
{
"id": 64,
"name": "Thai"
}
],
我想在数组中搜索,就像我用“m”新数组搜索时一样。
"cuisines": [
{
"id": 61,
"name": "mexican"
}
],
我该怎么做?
有什么建议吗?
谢谢。
【问题讨论】:
-
按此角色过滤:如果名称中包含字符“m”?
-
到目前为止你尝试了什么?
-
您提供了 JSON 而不是数组。您确定要解析数组并执行正则表达式吗?
-