News for hackers. Stuff that matters.

Show HN: behold, jsonifier

Just a simple tool I hacked together last night. I wanted to paste a bunch of JSON for reference in an IRC channel, but the JSON that I wanted to paste was not formatted. I didn't quickly find a pastebin that formatted JSON for me so I just made one.

It's probably so simple that it's borderline useless, but here it is!

http://jsonifier.com/

example output: http://jsonifier.com/paste/4e3f84b46f3b792dde000000

( 11 comments | 10 points | on HN )
Re:Show HN: behold, jsonifier by danest on Monday August 08, 2011 @11:46AM (#2860444)
This looks awesome, I have been using this for a while now http://jsonviewer.stack.hu/
Re:Show HN: behold, jsonifier by Skywing on Monday August 08, 2011 @11:57AM (#2860493)
nice. i did not end up finding that one last night.
Re:Show HN: behold, jsonifier by ideamonk on Monday August 08, 2011 @11:58AM (#2860501)
Neat and clean. I'd definitely find it useful while sharing ugly JSONs with my team. Since you're providing this service for free, just out of interest, what are you hosting it on? What're your plans for sustaining it when usage goes "Up and at 'em, Atom Ant!"?
Re:Show HN: behold, jsonifier by Skywing on Monday August 08, 2011 @12:06PM (#2860522)
Hosted on Linode, at the moment. If I see that people are finding it useful then I have no problem sustaining it myself.
Re:Show HN: behold, jsonifier by JW_00000 on Monday August 08, 2011 @03:22PM (#2861227)
A small bug: when you go to an invalid URL (e.g. http://jsonifier.com/paste/abcdef), an "Internal Server Error" is shown, instead of a nice error message.
Re:Show HN: behold, jsonifier by Skywing on Monday August 08, 2011 @04:10PM (#2861399)
Ah. Thanks. Will patch that up right now. :)

edit: Provides clean error message now.

Re:Show HN: behold, jsonifier by ipmb on Monday August 08, 2011 @12:22PM (#2860585)
Recent versions of Python have a JSON prettifier baked in. On OS X, if you have ugly JSON in your clipboard, simply run this:

    $ pbpaste | python -mjson.tool
Re:Show HN: behold, jsonifier by Skywing on Monday August 08, 2011 @12:24PM (#2860592)
I'm doing essentially the same thing with the submitted JSON. The result of that would be what I am storing in the database.
Re:Show HN: behold, jsonifier by mtogo on Monday August 08, 2011 @11:47AM (#2860449)
Wow, that's actually pretty awesome.
Re:Show HN: behold, jsonifier by Skywing on Monday August 08, 2011 @11:36AM (#2860388)
Re:Show HN: behold, jsonifier by shthap3ns on Monday August 08, 2011 @02:41PM (#2861100)
Doesn't JSONLint do this? Or am I missing something?