David Pollak was right about XML and JSON

David Pollak was right about XML and JSON, but perhaps in a different way. XML cannot be converted to (clean) JSON. Suppose we have a shopping cart in XML which we want to convert to JSON: <cart> <items> <item><name>one</name></item> <item><name>two</name></item> </items> </cart> One representation in JSON would be (cart could be omitted): { cart: { […]

Read More »