It’s a cliche but the answer really is “it depends” I’m afraid! JSON is much common with RESTful services, because it’s very fast and lightweight – but if you need more specific information, such as nested data attributes and data type information, then XML is a good choice. Everything I’ve outlined here would work for both.