Discussions

Ask a Question
Back to All

How to have my JSON more readable when viewed on ipfs?

I am formatting my JSON like this before uploading

const formattedJsonString = JSON.stringify(json, null, 2);

however when viewed on ipfs it is not formatted at all, containing no indentation and not very readable at all, how do i fix this?