Re:Open-source, JavaScript JSON HTML viewer released
by nirmal on Sunday March 20, 2011 @03:10PM
(#2347045)
When I first started interacting with APIs that use JSON I wanted a JS library to automatically convert a JSON structure into, hopefully semantically correct, HTML which I could then easily style with CSS. At the time I couldn't find anything but I did write a simple piece of JS. I show an example of how I used it to style tweets on my site: http://nirmalpatel.com/json2posh/
Re:Open-source, JavaScript JSON HTML viewer released
by regularfry on Sunday March 20, 2011 @04:12PM
(#2347262)
Is there a JSON microformat for marking strings as URLs which the user agent should be able to follow? 'Cos that's all that's missing from making this sort of thing a generic REST client.
Re:Open-source, JavaScript JSON HTML viewer released
by mythz on Sunday March 20, 2011 @04:27PM
(#2347304)
I think it's rare to see JSON HyperMedia data formats in the wild, XML seems the preferred choice due to its use of attributes for metadata annotation.
Re:Open-source, JavaScript JSON HTML viewer released
by regularfry on Monday March 21, 2011 @02:58AM
(#2348776)
That won't work reliably with relative links. It also lacks any kind of link annotation (so, is this linked resource a "parent"? A "child"? Metadata? And so on).
http://www.thomasfrank.se/json_editor.html
[1]http://embeddedjs.com/
[2]http://aefxx.com/jquery-plugins/jqote2/
edit: Now I understand. This one generates the report automagically, no need to create a HTML template for the JSON data.
Here's on of the few examples I've found that uses JSON: http://restafari.blogspot.com/2010/10/evolving-hal.html
{"OH HAI":[{"foo":42, "bar":123}, {"foo":123, "bar":456}]}