4 ms·
> JSON isn't a natural hypermedia No format is a hypermedia, because hypermedia involves heterogenous formats bound with links. But any format in which links
by dragonwriter 5y ago
> JSON isn't a natural hypermedia
No format is a hypermedia, because hypermedia involves heterogenous formats bound with links.
But any format in which links can be conveniently embedded can participated well in hypermedia, and JSON is definitely a format in which links can be embedded.
> humans consuming HTML
Humans aren't any more the usual consumers of HTML than they are of JSON. In both cases, software consumes and may (or may not) interact with humans. But immediate agency in the consumer isn't necessary for hypermedia, in fact, the hypermedia model is very much intended for robust mechanical consumption by systems not designed with advance knowledge of the structure, because hypermedia is self-describing.
That's why web mashups, search engines, archives, and specialized crawlers are all able to work.
- recursivedoubts 5y ago> with advance knowledge of the structure Wouldn't advance knowledge of the structure do away with the benefit of self-describing messages? I assert that, without strong AI or simply passing it along to humans (as with HTML) REST is largely wasted on code.
- deleted 5y ago[deleted]
- dragonwriter 5y ago“bot designed with advance knowledge...” was an unfortunate typo for “not designed with advance knowledge...” Yes, advance knowledge makes self-description superfluous.
- recursivedoubts 5y agoBots can crawl a link graph, but that seems to me to be a relatively primitive use of a uniform interface when compared with a human interacting with a hypermedia system. Does that strike you as well?
- e12e 5y ago> JSON is definitely a format in which links can be embedded. Not really? Html has a way to include links (a/href) json has strings. One can of course add on top of json (like one can build on utf8 text to build json). But json is a pretty terrible format - quite simple, but quite weak. You can embed links in json as much as you can embed a json document as a base64 encoded string inside another json document...