|
|
|
|
|
by cpunks
5176 days ago
|
|
Or... they're designed for different purposes and not even competitors. XML is a markup language: 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. |
|