Ask HN: JSON or XML, questions about an idea ?
https://news.ycombinator.com/item?id=750597For a brand new API, which would you choose and why ?
I'm busy building a small social network, it will have an API as its main component, in fact most of the site itself will be built using the API.
If you have experience with both these techniques which do you think is the best way to go.
Eventually the API will be made public, power users will be able to write plug-ins for the site in javascript using a 'development' field in their profiles, these will be loaded after the 'default' code for the site loads and should enable the developers to modify the way the site works as much as possible.
Once a user has tested a plug in on their own account and has verified that it works properly they can submit it for general availability after an inspection to make sure that they are not doing anything nasty.
The resulting plug-in is then 'versioned' (cloned and given unique id) and made available to other users.
All the code will be served up by our server, so unlike facebook or other heavyweight APIs there will be no external servers involved (for now at least, who knows where this will lead...).
Has something like this been done already ?
Thanks for any and all information :)