mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
839 stars 157 forks source link

[WISH] Add JSONView like beautification #7

Open risseraka opened 11 years ago

risseraka commented 11 years ago

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

alanbem commented 10 years ago

+1

mikekelly commented 10 years ago

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.

pnsantos commented 10 years ago

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.

fdw commented 8 years ago

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