# External JSON upload iteration data fetch problem

**URL:** <https://community.postman.com/t/external-json-upload-iteration-data-fetch-problem/13833>\
**Category:** Help Hub\
**Created:** [July 2, 2020, 9:56am UTC](https://community.postman.com/t/external-json-upload-iteration-data-fetch-problem/13833 "2020-07-02T09:56:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit2330](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rohit2330](https://community.postman.com/u/rohit2330)\
**Post date:** [July 2, 2020, 9:56am UTC](https://community.postman.com/t/external-json-upload-iteration-data-fetch-problem/13833/1 "2020-07-02T09:56:31Z")

</div>

I have 2 request bodies stored in JSON file as below

```
[

{
    "ABC1":
	{
    "Id": "533",
    "number": 7,
    "Message": "Test Subject 1",
    "Text": "Test Message Text 1",
    }
},
{	
	 "XYZ2":
	{
    "Id": "534",
    "number": 9,
    "Message": "Test Subject 2",
    "Text": "Message Text 5",
    }
}	
	 ]

```

When I try to upload this JSON in postman preview looks like below-  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/c/8c4f152ca6f3a3fa392126c912d6b75550cfbd3d.png)

Can you please help me to upload correct JSON with 2 iterations? so that i can tun my POST request with these 2 iterations.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 2, 2020, 10:39am UTC](https://community.postman.com/t/external-json-upload-iteration-data-fetch-problem/13833/2 "2020-07-02T10:39:59Z")

</div>

Hey @rohit2330,

It would need to be formatted like this:

```
[
   {
      "Value":{
         "ABC1":{
            "Id":"533",
            "number":7,
            "Message":"Test Subject 1",
            "Text":"Test Message Text 1"
         }
      }
   },
   {
      "Value":{
         "XYZ2":{
            "Id":"534",
            "number":9,
            "Message":"Test Subject 2",
            "Text":"Message Text 5"
         }
      }
   }
] 

```

In this example, `Value` would be the key you would specify in your collection like `{{Value}}`

---

<div class="post-metadata">

**Author:** ![rohit2330](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rohit2330](https://community.postman.com/u/rohit2330)\
**Post date:** [July 2, 2020, 11:12am UTC](https://community.postman.com/t/external-json-upload-iteration-data-fetch-problem/13833/3 "2020-07-02T11:12:22Z")

</div>

@danny-dainton Thanks for this information after making changes as you suggested I can see 2 iterations now with data in it.

Below are my 2 questions-

1)Suppose in these 2 iterations I clubbed/added 2 request bodies/objects for other POST method which is part of same collection then how i can iterate/traverse this JSON so that my 2 POST requests will get run using data from single file .  
2)What will be script to achieve this?

My objective is to have 1 JSON file at collection level which holds request bodies for POST method.I want to run each request from collection twice.

This will be great help to me.
