【发布时间】:2020-10-19 17:25:40
【问题描述】:
我有 2 个 JSON 数组
a= [{"[{ "Id": "123","Types": "Dial"},{"Id": "963", "Types": "Post"},{"Id": "456","Types": "Dial"},
{ "Id": "569","Types": "Dial"}]
b= [{"Subject": {"Prog": [{"Type": "Identifier","Id": "123"}]}},
{"Subject": {"Prog": [{"Type": "Identifier" ,"Id": "569"}]}},
{"Subject": {"Prog": [{"Type": null,"Id": "963"}]}},
{"Subject": {"Prog": [{"Type": null,"Id": "963"}]}},
{"Subject": {"Prog": [{"Type": null,"Id": "963"}]}},
{"Subject": {"Prog": [{"Type": null,"Id": "963"}]}},
{"Subject": {"Prog": [{"Type": "Identifier","Id": "456"}]}}]
我想从“a”验证“类型”值是否为“POST”,因为 JSON“b”中对应的“id”“类型”的值为“null”
请帮忙。
【问题讨论】:
标签: arrays json automation karate