hal-browser icon indicating copy to clipboard operation
hal-browser copied to clipboard

[WISH] Add JSONView like beautification

Open risseraka opened this issue 12 years ago • 4 comments

That would be great to have some collor and/or collapse like a JSONView plugin.

https://github.com/jamiew/jsonview-chrome/blob/master/jsonview.js

risseraka avatar Feb 12 '13 13:02 risseraka

+1

alanbem avatar Nov 23 '13 10:11 alanbem

does anyone have a strong opinion about which one we use? preferably a bower component as this is the direction I intend to take the hal browser too.

mikekelly avatar Nov 23 '13 12:11 mikekelly

If highlighting is what you want, highlight.js is probably the best option. If other features such as collapsing elements then jsonview is the best option (that I know of). There's already a fork with the js lib only.

If you go for jsonview, one of my team members has already integrated jsonview (along with a couple of bug fixes) with hal browser, I'm going to try and have him create a pull request if that's ok with you Mike. We also added a "raw" button to toggle the beautifier on/off. We did this because jsonview, by pretty-printing the response, shows ill-formatted json (for example no quotes on links) which is an annoyance if you want to copy paste the response to somewhere else.

pnsantos avatar Nov 28 '13 23:11 pnsantos

Are there any plans to include this feature? Or has development stopped?

fdw avatar Aug 31 '16 12:08 fdw