ietf
[Top] [All Lists]

Re: A standard for XML - JSON mapping.

2016-02-01 05:04:27
On 2016-02-01 11:04, Carsten Bormann wrote:
<https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html>?

This is for the transport of JSON data in XML documents, not for
converting XML data into a JSON representation.

Ack. Good point.

JSON -> JSONx:

{ "Ticker" : "IBM" }
->
<json:object>
   <json:string name="Ticker">IBM</json:string>
</json:object>

(In any case, I'm wondering if you are citing this because you think we
should be using it or just as a vivid demonstration of how futile these
efforts are...)

I'm not sure about the futile part; AFAIU, there are valid use cases for the above.

But XML->JSON of course is much more complex; if a generic transformation is needed the result will be extremely ugly.

Best regards, Julian

<Prev in Thread] Current Thread [Next in Thread>