android - Do you advise clients to use JSON or XML? And Why? -
many times client ask me whether deliver data via xml feed or json strings. say:
- xml if have feed , not have web developer create script generating json strings
- json if not have feed , need create scratch
what say? think delivering data via xml feeds obsolete , xml over-complicated , heavy?
should advise clients (for sake of future) move onto json way of delivering data?
edit
from discussion https://stackoverflow.com/questions/2636245/choosing-between-json-and-xml can see json advised web services, used case scenario in clients. seems advising them properly.
what want pass news articles onto mobile device - shall advise xml of json?
what post&get cases when need post data , response displayed on user's mobile device - xml or json?
if consumers browsers or mobile devices, recommend json.
- faster
- lighter
- native parsing support
if consumers other programs, recommend xml
- can validated easily
- code generators available make programming easy , less error-prone
Comments
Post a Comment