by cpunks · 14y ago · 0 comments
http://en.wikipedia.org/wiki/Markup_language
It was designed for documents. Try converting an HTML page to JSON. Try something as simple as:
<h1> Hello World! </h1>
<p> The most common introductory program is called
<i> Hello, World </i>. </p>
Go on. If you think JSON wins, just do it, and post it below.The problem was when people started mis-applying XML to send data structures, for RPC, and similar tasks. That's not what it was designed for. JSON is a cross-language way of specifying common data structures, and is very good at doing that.
So I'm not really sure what your point is. Are you trying to say that, because HTML (which is NOT XML) is awkward to represent in JSON, that XML wins?
Sidenote: YAML doesn't consider itself a markup language. See the renaming: http://en.wikipedia.org/wiki/YAML