I submit a query from my Java application, which upon running on Elasticsearch server returns the result in the form of a string. I want the result as a list of JSONObject
objects. I can convert the string to a JSONObject
using JSONObject jsonResponse = new JSONObject(responseString)
.
Is there any method by which I can get this in the form of a List<JSONObject>
?