navio_V navio_V - 7 months ago 29
JSON Question

Display json in webpage

I'd like my html code to open a file that has a certain format.

But when it does open its all togeather with no correct spacing

Thanks for the help!
Here is some of my html code:

<td><a href="folder/something.json">Here</a></td>


The anchor tag you have in your question will lead directly to a JSON file. As far as rendering JSON, by default you are at the mercy of your browser. There are however some tools available for rendering raw JSON.

If you have other content that you want to be displayed "as is" in your browser have a look at the pre tag.

For example:

this will