Jayway JSONPath

送分小仙女□ 提交于 2019-12-11 23:57:39

问题


I am using a library which in turn is using Jayway JSONPath. I'm properly referencing a jsonpath $.location.city for the following JSON file.

{
  "venue":
  {
    "latitude": "51.0500000",
    "longitude": "3.7166700"
  },
  "location":
  {
    "continent": " EU",
    "country": "BE",
    "city": "Brussels"
 }
}

But I am getting the error "InvalidPathException com.jayway.jsonpath.PathNotFoundException: Missing property in path $['location']for $.location.city". Is there any problem with the JSON path ?

来源:https://stackoverflow.com/questions/34698868/jayway-jsonpath

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!