jsonpath的坑

$.data.insurePlanInfo.attrs[?(@.field=="cusRiskAmnt")].dicts[-1:0].key

$.data.insurePlanInfo.attrs[?(@.field=="cusRiskAmnt")].dicts[-1:].key

以上两种方式,在jmeter都能提取出来,但在python中,只有后面这种能正常提取值。

参考转载:https://www.cnblogs.com/youring2/p/10942728.html

原文地址:https://www.cnblogs.com/lelexiong/p/15120570.html