This might mainly be a “call-out” to Dave Winer, since he is continually
attempting to push RSS for all sorts of data that should be inherited around the web – although, he has
stated before that he likes JSON – I think – My memory is not so good, even my girlfriend has been
complaining about it.
Either way, I’m just going to take a small amount of time here to
list why I no longer like XML and RSS for portable data.
It’s too low-level.
XML and RSS are a markup language, of course. It’s very low-level code, and is generally
a pain to parse in any language. Which is why I prefer JSON.
It’s high-level code.
JSON is a very simple object – It’s basically an array of
data. Here is some XML vs. JSON:
XML
border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px;
font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none;
color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<data style="color: #0000ff">>
<user id="876232">
<name>User Name style="color: #0000ff"></name style="color: #0000ff">>
<screenName>User style="color: #0000ff"></screenName style="color: #0000ff">>
</user>
</data>
No comments:
Post a Comment