Hacker News new | past | comments | ask | show | jobs | submit login

Well-structured data like this is better encapsulated in XML:

    <?xml version="1.0" encoding="UTF-8"?>
        <address street="Church Street">
    	<specifiers>
    	    <key length=""/>
        	<value type="uint32" scale="nanolightseconds">5</value>
    		<city>
        	    <![CDATA[ 
            		<?xml version="1.0" encoding="ISO-8859-15"?>
                    <name>Church City</name> 
    	        ]]>
    	    </city>
    	</specifiers>
    </address>
Isn't that much more legible and understandable?

(I hate XML. So much. This shouldn't be a valid document in any language.)





Just think, there were even multiple versions of JSONx so someone somewhere had to be using it.


It's part of a bigger product (WebSphere), so hopefully it's just being dragged along and not still under development.


While I get your point, the XML document includes so much more information than the JSON example. Encoding, version, data types, 'scale', response length, etc.

Please try not to make any false equivalences :)




Applications are open for YC Winter 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: