[jQuery] Best AJAX transfer method?

2009-12-02 Thread ScottChiefBaker
For server side scripts I'm wondering if there is an inherent advantage to returning XML vs JSON (or vice versa). I've always returned XML because I find it's more human readable, and thus I can verify the data better. I'm talking strict data structures (arrays,lists, etc), no HTML. I would

Re: [jQuery] Best AJAX transfer method?

2009-12-02 Thread Michael Geary
JSON is far better for use in JavaScript. It's much easier to access JSON data, since by the time you see it, it's just ordinary JavaScript objects. It's more convenient and faster too. Regarding security, this is data that you're generating on your own server for use in your own website? Then