Why i cant import json file

Hi,

Why json file cannot be imported in postman? The error msg is failed to import data, format not recognized.

Hi @huwaina,

It’s difficult to say without some more information, but the main reason why the error is thrown is because the JSON file that’s being imported doesn’t follow our schema for collections.

Here’s a link to our documentation on importing/validating files (it’s the last bit at the bottom) – https://www.getpostman.com/docs/postman/collections/data_formats

If our schema is being followed, but the import is still throwing the same error, it may be a bigger issue. If that’s the case, let me know.

Best,
Chris

1 Like

I found an issue with an extra comma after headerPresets, which was making the JSON invalid. IF you have the same problem, just remove it.

I have found using a Linter can help detect errors with bad JSON.
Check out something like https://jsonlint.com/