users@jersey.java.net

boolean return values in a json mime type

From: Arul Dhesiaseelan <arul_at_fluxcorp.com>
Date: Tue, 22 Apr 2008 12:25:44 -0600

Hello,

I have the following rest method which returns a boolean json response.

  @GET @Path("/isValid/{id}")
  @ProduceMime({"application/json"})
  public boolean isValid(@PathParam("id") String id) {
    return true;
  }

But, it fails with the following error.

SEVERE: A message body writer for Java type, class java.lang.Boolean,
and MIME m
edia type, application/json, was not found

Am I missing any jars specific to this error? I have jettison in my
classpath.

Thank you
Arul