users@jersey.java.net

Re: JSON format & javadocs

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Thu, 30 Aug 2007 09:39:22 -0700

Yep, you are right!

-Arun

Jakub Podlesak wrote:
> Hi Arun,
>
> I am not sure what you want to produce is a valid json code.
> Please look at the grammar at:
> http://www.json.org/
>
> ~Jakub
>
> On Thu, Aug 30, 2007 at 06:19:35AM -0700, Arun Gupta wrote:
>> 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
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

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