Sending / Recieving Data

Danoweb

Rookie
Joined
Apr 20, 2010
Messages
88
If we are talking about PHP, I would go for JSON without a doubt. It's very easy to handle and work with opposed to XML which gives me headaches with encoding and parsing speed.

Another cool thing is if you're working with AJAX you can easily turn the JSON data (string) into a JavaScript object. Example for jQuery:

Code:
jQuery.parseJSON( json )
 

Latest posts

Back
Top