# What exactly is the correct JSON format for Postman?

**URL:** <https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306>\
**Category:** Help Hub\
**Created:** [January 6, 2022, 2:12pm UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306 "2022-01-06T14:12:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![science-cosmonaut-23](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@science-cosmonaut-23](https://community.postman.com/u/science-cosmonaut-23)\
**Post date:** [January 6, 2022, 2:12pm UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/1 "2022-01-06T14:12:56Z")

</div>

I’m trying to import a very large JSON file containing both Latin and Chinese characters through the import button. Unfortunately, a message pops up telling me the format is not recognized.

What do I need to do to this file for it to be able to fulfill Postman’s requirements?

I’ve tried another extremely small and simple file which is just one object inside another and I get the same error message.

However, one of my files does fulfill the requirements and I don’t get an error message.

The first screenshot shows the file that Postman allows and the second and third screenshots show the files that Postman rejects.

 ![Capture11](https://us1.discourse-cdn.com/getpostman/original/3X/8/5/858d87e08d98d2cf7d5dc73c6407cba0aef7e1f3.png)

 ![Capture12](https://us1.discourse-cdn.com/getpostman/original/2X/d/d5489734e881a6d5fb2d5aa9be0f3c7e8bc7534f.png)

 ![Capture13](https://us1.discourse-cdn.com/getpostman/original/2X/e/e8c50ee5bbb530d4061c4ea52af547652ce6a352.png)

---

<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:** [January 6, 2022, 4:50pm UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/2 "2022-01-06T16:50:00Z")

</div>

The first file looks like a Collection that Postman recognises as a known format and will create that in the Workspace.

I’m not sure what the second two files are or what you’re using them for?

---

<div class="post-metadata">

**Author:** ![science-cosmonaut-23](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@science-cosmonaut-23](https://community.postman.com/u/science-cosmonaut-23)\
**Post date:** [January 7, 2022, 2:42am UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/3 "2022-01-07T02:42:05Z")

</div>

The second file is the only file I actually want to import. I was just testing the first and third files.

The second file is a very large collection of Chinese/English translations for a dictionary I’m trying to build.

After importing, I want to create an index that I can reference using a search engine API (MeiliSearch) so I can access the translations through a search bar.

How can I turn this file into a collection Postman recognizes?

---

<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:** [January 7, 2022, 4:29pm UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/4 "2022-01-07T16:29:26Z")

</div>

The `Import` feature will only be able to parse _known_ formats, it’s not a general-purpose importer. It requires the file to be in a specific format - hence the reason why you would see an error message if it’s not.

The Collection format in most basic would be this:

```auto
{
	"info": {
		"name": "New Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": []
}

```

That would display, once imported, an empty Collection.

As you add more Folders and Requests to the Collection, the structure will start to look more like this:

```auto
{
	"info": {
		"name": "New Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "New Folder",
			"item": [
				{
					"name": "New Request",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://postman-echo.com/get",
							"protocol": "https",
							"host": [
								"postman-echo",
								"com"
							],
							"path": [
								"get"
							]
						}
					},
					"response": []
				}
			]
		}
	]
}

```

This will increase in size and change as you add more complex requests and items, such as `Collection Variables` to the Collection.

I’m not really sure what your final requests would look like, given the file that you have created so I couldn’t give you a better answer.

This is the [raw schema](https://schema.postman.com/collection/json/v2.1.0/draft-07/collection.json) for the Postman Collection Format v2.1.0

---

<div class="post-metadata">

**Author:** ![science-cosmonaut-23](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@science-cosmonaut-23](https://community.postman.com/u/science-cosmonaut-23)\
**Post date:** [January 10, 2022, 4:06am UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/5 "2022-01-10T04:06:25Z")

</div>

Got it.

Thanks for the help.

So instead of importing that large file with all the English/Chinese translations, I should create an empty Collection first, then add more folders and requests containing my data to the Collection through the Postman interface?

Wouldn’t that take forever given that my file contains tens of thousands of translations?

I’m struggling to see a quick and simple solution here. Is there one?

---

<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:** [January 10, 2022, 7:06am UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/6 "2022-01-10T07:06:35Z")

</div>

It doesn’t need to be created in the Postman UI but for Postman to recognise what the file is, it needs to be in a known format.

In its current form, Postman has no way of mapping that to anything as it does not know what you want to do with it.

---

<div class="post-metadata">

**Author:** ![science-cosmonaut-23](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@science-cosmonaut-23](https://community.postman.com/u/science-cosmonaut-23)\
**Post date:** [January 10, 2022, 4:07pm UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/7 "2022-01-10T16:07:07Z")

</div>

I understand but how can I make a file as large as mine, with as many lines of code as it has, fit into Postman’s required format?

I’ve looked for resources/tutorials online for how to do this but no luck.

---

<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:** [January 10, 2022, 4:26pm UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/8 "2022-01-10T16:26:45Z")

</div>

What does a single request look like? How does the data in the file feed into that request?

I don’t know what your file data is used for so I’m unable to offer any solutions.

---

<div class="post-metadata">

**Author:** ![science-cosmonaut-23](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@science-cosmonaut-23](https://community.postman.com/u/science-cosmonaut-23)\
**Post date:** [January 11, 2022, 4:54am UTC](https://community.postman.com/t/what-exactly-is-the-correct-json-format-for-postman/31306/9 "2022-01-11T04:54:11Z")

</div>

An example GET request - `{{url}}/indexes/translation/documents`

An example index - `[{ "uid": "translation", "name": "translation", "createdAt": "2022-01-10T03:37:45.388463500Z", "updatedAt": "2022-01-10T03:37:45.389154Z", "primaryKey": "translation_id" }]`

Then, ideally, each definition will be assigned a translation\_id to be linked to the primary key.

The file data is to be indexed by the MeiliSearch API for a search engine.

Apologies if I’m still unable to make myself clear. I’m very new to this.
