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.

  1. what want pass news articles onto mobile device - shall advise xml of json?

  2. 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.

  1. faster
  2. lighter
  3. native parsing support

if consumers other programs, recommend xml

  1. can validated easily
  2. code generators available make programming easy , less error-prone

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -