How to convert JSON Data to a array List in a connector

I’m trying to fetch data using a script connector which involves a rest API Call.The response rendered is in the form of JSON. Now am trying to retrieve this data through a process variable so that i can use it in my form.Please suggest how to achieve this.

Have a look at this tutorial:

https://www.tutorialspoint.com/json/json_java_example.htm

regards
Seán

PS: If this reply answers your question, please mark as resolved.