Trying to return JSONObject from QueryBuilder as a List to loop through in my Component
Hello! I have created a Servlet that accesses the QueryBuilder API and outputs that data on a custom backend point, as you can see below.
The next step was to pull this JSON in from the Service we created into our Component, which I have set up as a JSONObject, though you are unable to loop through those in the htl. I have been trying to covert those from a JSONObject to a List so that we can loop through the results that we get from that QueryBuilder, but I haven't been able to get that converted correctly. Is there something that I am doing incorrectly on this? I'm not super well versed in Java, so I'm not sure if this is a silly mistake in my code or not.
Edit: removed code from 3rd parties
