How can i get only index name from response

How can i get only index name from response generated by calling _cat/indices using java. Using EntityUtils i am getting the response as string which gives me information in the way how it looks when called using CURL command. i am using rest low level client for fetching the response.

String responseBody = EntityUtils.toString(response.getEntity());

How should i process the responseBody to get only index name ????

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.