# How to execute Test Scripts for partial responses?

**URL:** <https://community.postman.com/t/how-to-execute-test-scripts-for-partial-responses/17989>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [November 24, 2020, 6:12pm UTC](https://community.postman.com/t/how-to-execute-test-scripts-for-partial-responses/17989 "2020-11-24T18:12:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackwu350](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jackwu350](https://community.postman.com/u/jackwu350)\
**Post date:** [November 24, 2020, 6:12pm UTC](https://community.postman.com/t/how-to-execute-test-scripts-for-partial-responses/17989/1 "2020-11-24T18:12:49Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-help-category/38) before creating a new topic.**

Hi,

## My API returns partial responses and postman displays it correctly: I.E

{‘data’: [{key1: val1}]

{‘data’: [{key2: val2}]

{‘data’: [{key3: val3}]

* * *

When i try to parse this entire thing into JSON with:

let body = pm.response.json()

I receive an error about unrecognized token.

Is there a way to combine all the partial responses under the ‘data’ key and then run the test?

Or run the test for every partial response received?
