JSON Formatter (Free, no ads, no signups)

(hqjson.com)

14 points | by triviatroy 239 days ago

10 comments

  • daft_pink 239 days ago
    Also want to point out that the jq cli, brew install jq on mac will also process json by typing "cat yourfile.json | jq .” or interactively with "jq . <<< '{"key": "value”}’”

    Just wanted to point this out, because often I don’t want to put my private json data into some rando website.

    • latexr 239 days ago
      > the jq cli, brew install jq on Mac

      You no longer need to install it with Homebrew. jq ships with macOS Sequoia in /usr/bin.

    • Macha 239 days ago
      Also if you don't want `jq` installed, `python` will also do it with `cat your.json | python -m json.tool`
      • latexr 239 days ago
        Python no longer comes preinstalled with macOS. Though running any command against /usr/bin/python3 will make macOS prompt you about installing the Xcode Developer Tools (takes two clicks), which does get you Python.

        Anyway, jq now ships with macOS Sequoia.

        For older versions of macOS, using JavaScript for Automation is preinstalled and gets the job done with a bit more verbosity:

          osascript -l JavaScript -e 'function run(argv) { return JSON.stringify(JSON.parse(argv[0]),null,2) }' '{"key": "value"}'
  • mbb70 239 days ago
    Obviously this is just `JSON.stringify(e, null, 2)` as a Service, but I think this is a nice app to kick the tires on a frontend stack without actually needed to build anything. Halfway between 'Hello World' and 'TODO app'.
  • ddgflorida 236 days ago
  • xnx 239 days ago
    While this tool doesn't seem to be anything special, the trend(?) of tools that run entirely in the browser, without any data sent to the server, is a very encouraging one.
    • Rychard 239 days ago
      There is a level of trust involved as unless you pull down the code, audit it and only ever run it locally, you really have no way of knowing that on any given page load the code hasn't changed.

      While I also appreciate tools that don't send data, I don't like the normalization of teaching people to paste (potentially) private data into a browser while blindly trusting that it's not being offloaded to some server somewhere.

      • throwaway14356 239 days ago
        It is one of the few things for which i could see the use of a new web document type.
  • cluckindan 239 days ago
    Why? Any IDE can format JSON for you. VS Code even does it out of the box.
  • cranberryturkey 239 days ago
    this is cool but unless you rank number one for json formatter you probably won't get any users.
  • disqard 239 days ago
    Thank You For Making And Sharing :)
  • hankchinaski 239 days ago
    Eventually if you get traffic you will have to monetise somehow
    • latexr 239 days ago
      It’s a static webpage that runs everything locally. Cost is going to be minimal. Not everything needs to be about money.