Many times my client ask me whether they will deliver data via XML feed or JSON strings. I usually say:
- XML if you already have a feed and do not have a web developer who will create script for generating JSON strings
- JSON if you do not have any feed and need to create any from the scratch
What do you say? Do you think that delivering data via XML feeds is obsolete and that XML is over-complicated and too heavy?
Should I advise all clients (for the sake of the future) to move onto JSON way of delivering data?
EDIT
From another discussion https://stackoverflow.com/questions/2636245/choosing-between-json-and-xml I can see that JSON is advised for web services, which is the most used case scenario in my clients. It seems that I was advising them properly.
-
What is they want to pass news articles onto a mobile device – shall I advise XML of JSON?
-
What about post&get cases when I need to post some data and the to get the response which will be displayed on user’s mobile device – XML or JSON?
If the consumers are browsers or mobile devices, I would recommend JSON.
If the consumers are other programs, I would recommend XML