json and xml
JSON is better than XML doesn't mean converting from existing
XML to JSON directly is better than the original XML...
Yes syntax does matter, but the real point is verbosity.
XML:
<day date="2010-03-01" value="123"/>
<day date="2010-03-02" value="1234"/>
JSON:
{"day":[{"@value":"123", "@date":"2010-03-01"},
{"@value":"1234", "@date":"2010-03-02"}]}
Well, in this case, maybe I'll say XML is better.
Can't we make it like this?
{"day": {"2010-03-01":"123", "2010-03-02":"1234"}}
from Flurry AppMetrics API
Also, we have a Flurry client in rest-core now.
0 retries:
Post a Comment
Note: Only a member of this blog may post a comment.