jsonpath了解

/ Python / 0 条评论 / 1640浏览

https://www.jsonpath.cn/
https://www.cnblogs.com/a00ium/p/10323040.html jsonpath表达式
jsonpath.$..vehicleList[(@.length-1)]
jsonpath.$..vehicleList[?(@.plateNumber=='赣G77777')].id


jsonpath.$..list[?(@.processStatusContent=='待司机确认')].registrationCode

jsonpath.$..data[?(@.isCommon==True&&@.certifyState==4)].plateNumber
jsonpath.$..vehicles[?(@.isCommon==True&&@.certifyState==4)].plateNumber
{"code":0,"data":{"vehicles":[{"isAvailable":true,"certifyState":4,"showBossCarFlag":true,"carBossUserCode":"100000009849","plateNumber":"豫HHHHHH","userCode":"100000297442","certifyStateDesc":"已认证","carBossMobile":"17022222224","isCommon":false,"isAddCaptain":true,"carBossName":"王应伟","id":"c711430c72fd4403b01bbb6e27d141e8"},{"isAvailable":true,"certifyState":4,"showBossCarFlag":false,"carBossUserCode":null,"plateNumber":"赣A612DR","userCode":"100000297442","certifyStateDesc":"已认证","carBossMobile":null,"isCommon":true,"isAddCaptain":false,"carBossName":null,"id":"d03ec2f0ad9c421fba6b35e7f2cd7f8d"},{"isAvailable":true,"certifyState":4,"showBossCarFlag":false,"carBossUserCode":null,"plateNumber":"临·豫J76QH9","userCode":"100000297442","certifyStateDesc":"已认证","carBossMobile":null,"isCommon":false,"isAddCaptain":false,"carBossName":null,"id":"41cc575a9d134fc78c743288f11fd686"},{"isAvailable":true,"certifyState":4,"showBossCarFlag":false,"carBossUserCode":null,"plateNumber":"湘FTPTHHV","userCode":"100000297442","certifyStateDesc":"已认证","carBossMobile":null,"isCommon":false,"isAddCaptain":false,"carBossName":null,"id":"e9bbec2c32cd455da512f6985d3ed687"},{"isAvailable":false,"certifyState":2,"showBossCarFlag":false,"carBossUserCode":null,"plateNumber":"临·吉F5ERGT","userCode":"100000297442","certifyStateDesc":"审核中","carBossMobile":null,"isCommon":false,"isAddCaptain":false,"carBossName":null,"id":"efa75c8c4a434785ac4a9d860116a332"}]},"success":true,"message":"success"}