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/

For me Json is valid still not working