Why should a REST service support multiple formats (e.g. XML and JSON)? -


several sources (e.g. here) suggest rest service should support several formats.

what benefits of approach?

wouldn't make service more complicated , harder support while providing no additional benefits customer?

my point of view hope not necessary. if have given both, giving flexibility customer use either xml or json.

i prefer using json hence more compact , readable - in communication "faster" because less data transferred xml. if use xml, customer can use xslt, xpath things. both has pros , cons.


Comments

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -