I have a API response below. I want to fetch a value from the response which inside a JSON array.
{
"cipherTexts": [
{
"id": "string1",
"isSensitive": false,
"cipherText": "gO/GSiH0Co1Ibw=="
}
]
}
I am using JsonPath class to fetch
String resp = response.asString();
JsonPath js = new JsonPath(resp);
js.get("cipherText").toString();
Anyone please help me here how to get the value for "id" or "cipherText" ???