【发布时间】:2017-12-21 08:24:14
【问题描述】:
对于我当前的任务,我的 NotePad++ 文件中有如下 JSON 数据,
"hits": {
"total": 85,
"max_score": 1,
"hits": [
{
"_index": "mycluster",
"_type": "subjectData",
"_id": "24",
"_score": 1,
"fields": {
"CaseA": [
"Personal and Culinary Services"
]
}
},
{
"_index": "mycluster",
"_type": "subjectData",
"_id": "30",
"_score": 1,
"fields": {
"CaseA": [
"na"
]
}
},
{
"_index": "mycluster",
"_type": "subjectData",
"_id": "31",
"_score": 1,
"fields": {
"CaseA": [
"Agriculture, Agriculture Operations, and Related Sciences"
]
}
}
]
}
我需要从整个文件中单独提取 CaseA 值,
"CaseA": [
"Personal and Culinary Services"
]
例如,“个人和烹饪服务”。
有没有办法做到这一点,"CaseA":[$1] ??
任何帮助/建议/想法都会很有用。
【问题讨论】:
标签: notepad++