Hi,
Why json file cannot be imported in postman? The error msg is failed to import data, format not recognized.
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
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