Live data from Hacker News

Json.human.js: Json Formatting for Human Beings

marianoguerra.github.io

11–20 of 71 posts

Re: Json.human.js: Json Formatting for Human Beings

#11
post #9

Don't use zebra coloring on tables. Edward Tufte strongly advises against this; see http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0... esp.

I will read that later, I opened an Issue to remind myself :)

https://github.com/marianoguerra/json.human.js/issues/1

thanks, didn't know it was a bad practice.

Re: Json.human.js: Json Formatting for Human Beings

#13
post #12

I use this almost daily, lets you easily format/compact and edit JSON through a GUI: http://jsoneditoronline.org/ Easy to use, and makes working with complex JSON a snap. The source is also available: https://github.com/josdejong/jsoneditor/

nice! didn't know about it.

in my case I needed a library to use it in a web app.

bookmarked anyway for personal use :)

Re: Json.human.js: Json Formatting for Human Beings

#14

author here: let me know if you have any questions

Great work! Would be nice to add an option to convert json key names to human-friendly names(passed as a separate key value array). So a key like full_name can appear as "Your Name:" to the end user.

thanks!

I created an issue for that:

https://github.com/marianoguerra/json.human.js/issues/2

also one to customize the display of booleans (sometimes on/off, yes/no are better than true/false)

https://github.com/marianoguerra/json.human.js/issues/3

Re: Json.human.js: Json Formatting for Human Beings

#16
post #15

I really enjoy JSONView for solving this problem. Chrome extension: https://chrome.google.com/webstore/detail/jsonview/chklaanhf... Original firefox extension: http://benhollis.net/software/jsonview/

Was just about to post this same thing, huge plus one. JSONView is a life saver, highly recommended.

Re: Json.human.js: Json Formatting for Human Beings

#20
post #15

I really enjoy JSONView for solving this problem. Chrome extension: https://chrome.google.com/webstore/detail/jsonview/chklaanhf... Original firefox extension: http://benhollis.net/software/jsonview/

can't live without it to work with JSON APIs.

the lib from this article is more tailored for apps that want to display arbitrary json to a broad range of users. As someone asked, there are not many uses, but I have one in my web app (http://event-fabric.com/)

Post reply on HN