Jayway JSONPath:如何获取父级的子级然后再使另一个父级

时间:2020-07-13 16:50:34

标签: json jsonpath jayway

 {
       "book": [{"author": "Nigel Rees",
                 "title": "Sayings of the Century",
                 "price": 8.95},
                {"author": "Evelyn Waugh",
                 "title": "Sword of Honour",
                 "price": 12.99}
               ],
       "bicycle": {"color": "red",
                   "price": 19.95}
      }

如何从Book和所有自行车中获取所有作者和书名?

我正在jayway jsonpath中执行此操作。 $ .. cameras [*] ['name','model'] ^^^有效,但是我似乎找不到增加自行车的方法。

0 个答案:

没有答案