4 ms·
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. Here's
by mythz 16y ago
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.
Here's on of the few examples I've found that uses JSON:
http://restafari.blogspot.com/2010/10/evolving-hal.html http://restafari.blogspot.com/2010/10/evolving-hal.html
- mythz 16y agoAlthough I dislike the use of XML in Ajax/SPA applications and very much side with Douglas Crockford in the JSON vs XML debate :) http://www.infoq.com/presentations/Heretical-Open-Source http://www.infoq.com/presentations/Heretical-Open-Source
- apu 16y agoPerhaps you could do some simple detection if a given field is a url (i.e., using a regexp) and auto-link it in the generated reports?
- regularfry 16y agoThat 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).
- regularfry 16y agoThere's also this: http://microformats.org/wiki/rest/json http://microformats.org/wiki/rest/json which looks interesting enough to bookmark.