I am going to import some data, and I have the data available in either a JSON feed or a XML feed. I can’t decide if I should use the XML or the JSON feed.
What are the pros and cons of choosing either feed, and what is your prefered choice?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
XML mean more bytes on the wire: closing tags, by definition, mean XML will be larger than JSON for the same data.
XML tags are human readable meta-data for the data you send. If humans aren’t reading it, what does it matter?
XML has XSD schemas for validation.
XML parsers are standard and ubiquitous.
I see both. JSON is starting to be used more and more.
Pick one. It probably doesn’t matter much. I’d prefer JSON these days.