title: Why my list is empty when I am parsing correct json response?
body: <p>I am trying to print the ids from a JSON response. But I am not able to understand why I am getting a blank list. I have verified the JSONpath (SECTIONS_IDS_JSONPATH) from the online website and it is giving me correct results.</p>
  <pre><code>public static void main(String[] args) {
      String SECTIONS_IDS_JSONPATH = &quot;$.[*].instructionEvents[*].sectionId&quot;;
      String sectionsData = &quot;{\&quot;sections\&quot;:[{\&quot;id\&quot;:\&quot;8da1cf5d-3150-4e11-b2af-338d1df20475\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;courseCredits\&quot;:[{\&quot;minimum\&quot;:4,\&quot;maximum\&quot;:null,\&quot;measure\&quot;:\&quot;hour\&quot;,\&quot;increment\&quot;:null}],\&quot;academicPeriodId\&quot;:\&quot;8b7a8e9e-5417-42a3-9c90-8d47226b5987\&quot;,\&quot;reservedSeatsMaximum\&quot;:0,\&quot;maxEnrollment\&quot;:0,\&quot;hours\&quot;:[],\&quot;sites\&quot;:[\&quot;All Campuses\&quot;],\&quot;instructors\&quot;:[],\&quot;instructionEvents\&quot;:[{\&quot;id\&quot;:\&quot;9d0c49e2-1579-43c3-b25a-2f85f551e62d\&quot;,\&quot;sectionId\&quot;:\&quot;8da1cf5d-3150-4e11-b2af-338d1df20475\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;days\&quot;:[\&quot;monday\&quot;,\&quot;wednesday\&quot;,\&quot;friday\&quot;],\&quot;startTm\&quot;:\&quot;2019-01-01T09:45:00-05:00\&quot;,\&quot;endTm\&quot;:\&quot;2024-12-01T10:45:00-05:00\&quot;,\&quot;localizations\&quot;:[],\&quot;instructionalMethod\&quot;:\&quot;Lecture\&quot;}]},{\&quot;id\&quot;:\&quot;ad3f63ad-e642-4938-a9fd-318afd2d1ad0\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;courseCredits\&quot;:[{\&quot;minimum\&quot;:4,\&quot;maximum\&quot;:null,\&quot;measure\&quot;:\&quot;hour\&quot;,\&quot;increment\&quot;:null}],\&quot;academicPeriodId\&quot;:\&quot;8b7a8e9e-5417-42a3-9c90-8d47226b5987\&quot;,\&quot;reservedSeatsMaximum\&quot;:0,\&quot;maxEnrollment\&quot;:20,\&quot;hours\&quot;:[],\&quot;sites\&quot;:[\&quot;All Campuses\&quot;],\&quot;instructors\&quot;:[{\&quot;id\&quot;:\&quot;c26572de-f9c8-4623-ba6a-79997b33f1c6\&quot;,\&quot;sectionId\&quot;:\&quot;ad3f63ad-e642-4938-a9fd-318afd2d1ad0\&quot;,\&quot;role\&quot;:\&quot;primary\&quot;,\&quot;persons\&quot;:[{\&quot;id\&quot;:\&quot;c1b50d79-5505-4a33-9316-b4b1f52c0ca3\&quot;,\&quot;names\&quot;:[{\&quot;firstName\&quot;:\&quot;BanColoFac-1\&quot;,\&quot;lastName\&quot;:\&quot;CTester\&quot;,\&quot;preferred\&quot;:true}]}]}],\&quot;instructionEvents\&quot;:[{\&quot;id\&quot;:\&quot;af8fb500-29f5-4451-95d5-a11215298cd4\&quot;,\&quot;sectionId\&quot;:\&quot;ad3f63ad-e642-4938-a9fd-318afd2d1ad0\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;days\&quot;:[\&quot;tuesday\&quot;,\&quot;thursday\&quot;],\&quot;startTm\&quot;:\&quot;2019-01-01T10:00:00-05:00\&quot;,\&quot;endTm\&quot;:\&quot;2024-12-01T10:50:00-05:00\&quot;,\&quot;localizations\&quot;:[],\&quot;instructionalMethod\&quot;:\&quot;Lecture\&quot;}]},{\&quot;id\&quot;:\&quot;a1422391-e2b9-4bc4-907b-371fcea01d70\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;courseCredits\&quot;:[{\&quot;minimum\&quot;:4,\&quot;maximum\&quot;:null,\&quot;measure\&quot;:\&quot;hour\&quot;,\&quot;increment\&quot;:null}],\&quot;academicPeriodId\&quot;:\&quot;8b7a8e9e-5417-42a3-9c90-8d47226b5987\&quot;,\&quot;reservedSeatsMaximum\&quot;:0,\&quot;maxEnrollment\&quot;:20,\&quot;hours\&quot;:[],\&quot;sites\&quot;:[\&quot;All Campuses\&quot;],\&quot;instructors\&quot;:[{\&quot;id\&quot;:\&quot;808daae1-3ec6-47ec-9af0-5392199bdf78\&quot;,\&quot;sectionId\&quot;:\&quot;a1422391-e2b9-4bc4-907b-371fcea01d70\&quot;,\&quot;role\&quot;:\&quot;primary\&quot;,\&quot;persons\&quot;:[{\&quot;id\&quot;:\&quot;793cc9b3-57c7-4a2d-8984-07a1fb6834a9\&quot;,\&quot;names\&quot;:[{\&quot;firstName\&quot;:\&quot;Andrew\&quot;,\&quot;lastName\&quot;:\&quot;Adams\&quot;,\&quot;preferred\&quot;:true}]}]}],\&quot;instructionEvents\&quot;:[{\&quot;id\&quot;:\&quot;730b4206-684d-4413-bf20-9bec5c1dc900\&quot;,\&quot;sectionId\&quot;:\&quot;a1422391-e2b9-4bc4-907b-371fcea01d70\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;days\&quot;:[\&quot;tuesday\&quot;,\&quot;thursday\&quot;],\&quot;startTm\&quot;:\&quot;2019-01-01T10:00:00-05:00\&quot;,\&quot;endTm\&quot;:\&quot;2024-12-01T10:50:00-05:00\&quot;,\&quot;localizations\&quot;:[],\&quot;instructionalMethod\&quot;:\&quot;Lecture\&quot;},{\&quot;id\&quot;:\&quot;8bc059ab-a8f8-4469-8e79-bbc71f7fa3fd\&quot;,\&quot;sectionId\&quot;:\&quot;a1422391-e2b9-4bc4-907b-371fcea01d70\&quot;,\&quot;courseId\&quot;:\&quot;e8a65581-ed1c-43f0-90a7-7b9d51b35062\&quot;,\&quot;days\&quot;:[\&quot;monday\&quot;,\&quot;wednesday\&quot;,\&quot;friday\&quot;],\&quot;startTm\&quot;:\&quot;2019-05-26T09:00:00-04:00\&quot;,\&quot;endTm\&quot;:\&quot;2021-05-26T09:50:00-04:00\&quot;,\&quot;localizations\&quot;:[],\&quot;instructionalMethod\&quot;:\&quot;Lecture\&quot;}]}]}&quot;;
      List&lt;String&gt; ids = JsonPath.parse(sectionsData).read(SECTIONS_IDS_JSONPATH);
      System.out.println(ids);
  }
  </code></pre>