I’m manipulating few data with PHP, I have the choice between Json and XML. But I don’t know what to choose, I never worked with one of them. So I want the easiest one.
Also I wonder if there’s good classes that can make parsing (XML or Json) easier.
I focus mainly on ease of use rather than speed and scale.
json.org makes JSON parsing simple. SimpleXML makes XML simple for PHP.
When choosing which one, it really depends on your application. If you will be passing data to JavaScript for processing on the client-side, then I recommend JSON. IMO, XML is better for data interchange between systems because it is very well understood and human readable (making interpreting easier for you). JSON is smaller over the wire, as there are no closing tags.