News for hackers. Stuff that matters.

API - XML or JSON output ?

We're considering building an API to our application. To all those that have created one, which output do most of your developer users use - XML or JSON ? Which one should we concentrate on first?
( 5 comments | 6 points | on HN )
Re:API - XML or JSON output ? by willarson on Sunday December 09, 2007 @06:00AM (#87448)
I also agree about JSON. JSON is quicker to serialize to and from than XML, and it also uses less bandwidth.

Realistically though, the serialization should be a simple layer on the top of your API, and there isn't anything that should prevent you from doing both quickly.

Re:API - XML or JSON output ? by nreece on Sunday December 09, 2007 @07:33PM (#87544)
JSON. Its serializable and has cross-browser support for in-built parsing. Moreover JSON data packets are light-weight as compared to XML, which means you'll also save on bandwidth and the data interchange will be quicker.
Re:API - XML or JSON output ? by boucher on Sunday December 09, 2007 @04:49AM (#87434)
JSON. XML is crufty.
Re:API - XML or JSON output ? by danw on Thursday July 24, 2008 @05:32PM (#255872)
I prefer to use JSON but your API should provide multiple appropriate formats. What's the actual data?
Re:API - XML or JSON output ? by yrashk on Sunday December 09, 2007 @03:28PM (#87502)
JSON