对不起我的英语不好和词汇量低。如何过滤掉所有字段"Properties.Searchable" = "true"
?这些字段可以是另一个字段的子字段。
这是一个示例(删除了大部分不必要的数据):
{
"Configuration": {
"Fields": {
"Id": {
"Properties": {
"DataType": "string",
"Searchable": "true"
}
},
"PrsonalInfo": {
"BirthDate": {
"Properties": {
"DataType": "date",
"Searchable": "false"
}
},
"Name": {
"GivenName": {
"Properties": {
"DataType": "string",
"Searchable": "true"
}
},
"FamilyName": {
"Properties": {
"DataType": "string",
"Searchable": "true"
}
}
}
}
}
}
}
我需要查询"Configuration.Fields"
并只返回那些有的路径"Properties.Searchable" = "true"
。结果应该类似于或接近此:
Id
PersonalInfo.Name.GivenName
PersonalInfo.Name.FamilyName
谢谢!