How can I export my site to a JSON code without downloading as a PEM file

I want to export my website’s code to JSON file but when i export it, it turns into a PEM file. I have no absolute way of converting it. Even if I have to convert it, How can I convert it? What possible way where I can convert it?