I was trying to return json in google app engine and is says Mime type not
supported. What can be the possible reason.
My exception & code i am using is as follows.
****************************************************************************
*Exception*
SEVERE: A message body writer for Java type, class
com.thoughtclicks.vo.ApplicationResponse, and MIME media type,
application/json, was not found
*My Code: is as follows.*
@GET
@Produces("application/json")
public ApplicationResponse translate(@QueryParam("msisdn") String url) {
ApplicationResponse appResponse = new ApplicationResponse();
appResponse.setResponse("Some String");
return appResponse;
}
Also, when i return xml it just works fine.
Any help on this is appreciated.
Thanks,
Rahul
----------------------------------------------------------
Rahul Juneja
http://techlabs.thoughtclicks.com