Json il less verbose and is the de facto standard for the web, json is easier to parse by javascript (by the browser or node.js), and a serialization/deseriazation is unique, in xml you could put some infos on the attributes oand other on tags or as parameters.
instead of
<event name="gamma_size">
<arg name="size" type="uint"/>
</event>{"type":"event",
"name":"gamma_size",
"arg": {"name":"size","type":"uint" }
Sir_Cmpwn|8 years ago
Wayland is not the web. None of these technologies are involved in Wayland.
>{"type":"event", "name":"gamma_size", "arg": {"name":"size","type":"uint" }
Your example is more verbose and harder to read... XML is definitely misused in many applications where JSON is appropriate but this is not one of them.
pcwalton|8 years ago
I do agree that it doesn't matter much.