Can you please clarify how the list will be returned after parsing the json object. My build is successful but I am getting an empty output.
After parsing the JSON object, you can write a loop that extracts the desired value you need to return from each instance and adds it to a list/array of type that you need to return.
You are getting a successful build probably because the method returns null right now so technically no error, but empty output because you haven’t returned anything.
You have to parse the json output and put some specific values in the list and return that list.
You can use getter of the pojo class