Parse JSON Postman response

前端 未结 3 1632
耶瑟儿~
耶瑟儿~ 2021-01-05 10:23

I have a test in Postman where I do a post request and need to parse the json response

The response looks like this:

\"aPIProxy\" : [ {
    \"name\"          


        
3条回答
  •  情深已故
    2021-01-05 11:07

    The below postman script might help you.

    var jsonData = JSON.parse(responseBody);
    var jsonNamesData = jsonData.aPIProxy;
    console.log(jsonNamesData);
    var parsedData = "";
    for(var i=0;i

提交回复
热议问题