# Incorrect format when importing a JSON file in postman

**URL:** <https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160>\
**Category:** Help Hub\
**Tags:** collections, json, import\
**Created:** [March 23, 2024, 12:33am UTC](https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160 "2024-03-23T00:33:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunar-module-engin14](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lunar-module-engin14](https://community.postman.com/u/lunar-module-engin14)\
**Post date:** [March 23, 2024, 12:33am UTC](https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160/1 "2024-03-23T00:33:39Z")

</div>

I’m trying to import a testcase from readyAPI that was exported as an xml but converted to a json file, in postman. I already used a JSON validator to validate the JSON, but I still get the error that the file is an incorrect format. Is there something wrong with the file?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/d/0de9b3dcab200e3c535e18dde89b739ca309a265.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:** [March 23, 2024, 12:41am UTC](https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160/2 "2024-03-23T00:41:36Z")

</div>

Hey @lunar-module-engin14 👋

Welcome to the Postman Community! :postman:

That isn’t in a known format that would be recognised in Postman. It might be valid JSON but it would still need to be in a specific format. Collections, API Schema’s, Environments, Globals and data dumps can be imported.

I’m not sure what you have seen or noticed to suggest that it would import that format.

Could you expand on your use case here?

---

<div class="post-metadata">

**Author:** ![lunar-module-engin14](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lunar-module-engin14](https://community.postman.com/u/lunar-module-engin14)\
**Post date:** [March 23, 2024, 1:25am UTC](https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160/3 "2024-03-23T01:25:37Z")

</div>

Hi @danny-dainton, thanks for replying

My team is planning on migrating from readyapi to postman. I was wondering if there was an easy way of migrating the scripts. I thought if I exported the test case file (xml) and then converted it to JSON, I can import it in postman. Do you know of a way or will the migration be purely manual?

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [March 25, 2024, 11:22am UTC](https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160/4 "2024-03-25T11:22:19Z")

</div>

Hi @lunar-module-engin14

You might find this article helpful. [Now You Can Easily Migrate Your Data from Other API Clients to Postman | Postman Blog](https://blog.postman.com/migrate-to-postman-from-other-api-clients/)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 24, 2024, 11:23am UTC](https://community.postman.com/t/incorrect-format-when-importing-a-json-file-in-postman/59160/5 "2024-04-24T11:23:06Z")

</div>

Closed on April 24, 2024, 11:23am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
