JSON Description Language

The following is related to DOMCrypt and similar...

http://tools.ietf.org/html/rfc4627

Having a strong background in XML schema authoring I'm slightly
puzzled by the enthusiasm of using "secure" objects that (seem) to
have no notion of explicit (built-in) name-spaces or a description
language.

Lets say that you have a system that accepts a certain set of
different objects.  How can you tell the difference between
them without writing some kind of "content sniffer"?

How can you deal with JSON objects in Java?  It seems that you
only get an "Object" and then have to explicitly cast that
based on knowledge of the data structure.

If I were into the JOSE stuff, I would consider adding a mandatory
name-space to all container objects which would open the door
to automatic generation of proxy objects and data validation.
There's no imminent need to agree on a JSON DL at this stage.

Anders

Received on Tuesday, 6 December 2011 02:51:55 UTC