FirstBest interview question

Asked about differences between having a REST API return XML and JSON and why you might want to use XML instead of JSON

Interview Answer

Anonymous

15 May 2015

My answer focused on the "lightness" (terse) of payload of JSON vs. the more verbose/larger XML but that they could represent similar data structures and semantics. Because it had been so long since I had used XML, I forgot that XML had a capability of being validated against a schema. And they seemed to want to hear that come up quickly and prominently. Oops!