p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 (http://p2p.wrox.com/book-professional-ajax-2nd-edition-isbn-978-0-470-10949-6-310/)
-   -   XML or JSON? (http://p2p.wrox.com/book-professional-ajax-2nd-edition-isbn-978-0-470-10949-6/77315-xml-json.html)

ajaxbeginner December 6th, 2009 04:03 PM

XML or JSON?
 
Hello,

Which one works on more browsers or is more reliable...XML or JSON. I need this to work on as many browsers as possible.

Is there a reason to use XML instead of JSON? (JSON is faster than XML, but are there any good reasons to stick with XML)

Thanks! [:)]

jmcpeak December 6th, 2009 06:32 PM

It depends on what you want to do. I primarily use XML files for settings and configuration. I use JSON to send information between the browser and server.

As far as support, you'll get more mileage out of JSON. Since every browser supports JavaScript, JSON is inherently supported.


All times are GMT -4. The time now is 04:18 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.