I read this article completely. I found it as one of the best. But I have a confusion which format is better to produce output in restful service. XML or JSON. What is the difference between both of the these formats here.