This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Guide on JAX-RS with application/json content type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Guide on JAX-RS with application/json content type" Watch "Guide on JAX-RS with application/json content type" New topic
Author

Guide on JAX-RS with application/json content type

Khuma Chhakchhuak
Ranch Hand

Joined: Nov 30, 2012
Posts: 37

Hi all,

Can anybody could point to me some useful resources on the JAX-RS with application/json content type?


Thanks,
Khuma
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 393
1. Read the doc that comes with the framework that you use, for example, Jersey implementation of JAX-RS.
All framework provide some basic samples:



2. Or google for JAX-RS and MediaType.APPLICATION_JSON.
Khuma Chhakchhuak
Ranch Hand

Joined: Nov 30, 2012
Posts: 37

Thank you. Cheers
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Guide on JAX-RS with application/json content type
 
Similar Threads
Unable to produce JSON response for an arraylist contaning java beans
JAX-WS with JSON on Glassfish
web service using json in java
JSON and http header
Using different Content Types for REST Webservices