I have a JSON like this
"tags": [
{
"key": "category",
"value": "Prototype Pollution"
},
{
"key": "cvss_31_severity_rating",
"value": "medium"
},
{
"key": "cvss_score",
"value": "4"
},
{
"key": "cwe_category",
"value": "1321"
},
{
"key": "language",
"value": "javascript"
},
{
"key": "owasp_2021_category",
"value": "a03-injection"
},
{
"key": "owasp_category",
"value": "a03-2021-injection"
},
{
"key": "owasp_category",
"value": "a1-injection"
},
{
"key": "severity",
"value": "moderate"
},
{
"key": "sink_method",
"value": "Object.assign"
},
{
"key": "source_method",
"value": "^axios^.post"
}
],
I want to pick up the value that corresponds to "key": cvss_score. I tried picking up as a
list<Map<String, String>> map =response.getBody.jsonPath.getList("tags");
but not able to parse it correctly can someone please tell me how to do it correctly