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

<pre><code>{
  "venue":
  {
    "latitude": "51.0500000",
    "longitude": "3.7166700"
  },
  "location":
  {
    "continent": " EU",
    "country": "BE",
    "city": "Brussels"
 }
}
</code></pre>

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