Sorry everyone, I have to bite.
(tl;dr there are perfectly legitimate reasons for drawing on hal+json
as an example.)
I'm not sure what your problem is Glenn. I 'grilled' you about this:
"[mamund], I like the fact that collection+json leads away from pure
object serialization toward more loose data"
You've described something as a "fact", without actually explaining
how that is the case. I was not clear about your reasoning, so I asked
you a bunch of questions to try and figure out where you were coming
from. There is nothing wrong with that. Why you are being defensive
and describing that as a 'grilling'?
It turns our your reasoning was something like "collection+json is a
media type that encourages decoupling by crippling the expressiveness
of JSON (into k/v) for representing state and thus forcing
implementors to add a layer of translation between their
'implementations' and the representations they exchange". I'm sorry
but I do not agree with that analysis, and I like to think I know a
bit about this stuff (maybe not as much as you or mamund?), so I
offered you a different perspective, which was..
Firstly, decoupling between _client and server_ in your API should be
the primary goal. This can be achieved by establishing shared
understanding around media types and link relations, so naturally this
principal applies to c+j - it is worth clarifying that this is a
general principal that applies to any hypermedia type (hence my
providing a list of alternatives).
Secondly, I do not buy the idea that it is necessary to run away from
JSON's object model because you want better decoupled implementations.
By far the easiest way for me to make this point is to refer to a
_real world example I am familiar with_ where a media type has
libraries for decoupling the representation but has not crippled JSON
in the same way. This happens to be hal+json.
Glenn, hopefully that clarifies why my drawing on hal+json was not
religious or dogmatic, but a genuine attempt to share my thoughts and
hear a response from you (which you have yet to share.) You are
clearly unhappy discussing this subject with me for whatever reason. I
suggest we move on or at least take this off-list.
Cheers,
M