Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How do you make embedded JSON look pretty?

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33910
    mattvot
    Member

    I’m looking to embed JSON into HTML pages, so people can see the raw JSON, and I’d like to know if anyone knows of an easy way to make it look better and more readable than just a monospace font. Maybe something like a syntax highlighter.

    Thanks

    #84998
    Mottie
    Member

    Try JSONLint to validate and format the JSON. Then any syntax highlighter should work, since it’s just javascript. I like Chili, but there are many other syntax highlighters out there.

    #85009
    mattvot
    Member

    Thanks Mottie,

    Does Chili support JSON? Not a great load of documentation with it.

    #85025
    Mottie
    Member

    JSON is javascript, so anything that highlights javascript will work.

    Hmmm, I forgot about the lack of documentation… maybe try SyntaxHighlighter instead

    #259548
    james88
    Participant

    Try this: JSON formatter. It’s a useful tool to view, edit, and format JSON

    #260396
    leinson
    Participant

    I have tried https://jsonformatter.curiousconcept.com/ Its pretty awesome to edit and formate JSON. Hope this helps you.

    #260420
    wilson8989
    Participant

    I have also tried JSON formatte-online.com its really easy to edit and use.

    #262456
    ellisanin
    Participant

    formatte-online. com worked pretty well for me. Thanks.

    #262467
    ellinani
    Participant

    Its worked for me. Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.