I am wondering about what kind of data representation usually used in Restful WebService?..
and which one is good for implementation in our application?.. JSON data format or XML data format?..
Thanks in advance..
Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
The great advantage of RESTful architecture is that it does not require any particular data representation. A RESTful client can request a particular kind of representation and the service should be able to create it.
For example, using the Jersey framework you can define methods in your service class that return XML, JSON, plain text, html or an image.
All of this is made possible by the general nature of HTTP headers.