users@jersey.java.net

JSON format & javadocs

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Thu, 30 Aug 2007 06:19:35 -0700

Where can I find an online version of Jettison JSON javadocs ?

The following method in a resource:

     public JSONObject getJSONMessage() {
         try {
             return new JSONObject().put("greeting1", "Hello World");
         } catch (JSONException ex) {
             ex.printStackTrace();
         }

         return null;
     }

returns the result as:

{"greeting1" : "Hello World" }

I need to generate:

{greeting1 : "Hello World" }

I looked at the source code at:

http://fisheye.codehaus.org/browse/~raw,r=26/jettison/trunk/src/main/java/org/codehaus/jettison/json/JSONObject.java

and could not find anything obvious.

-Arun

-- 
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta