Skip to main content

[json-processing-spec users] Re: Introduction and some initial user thoughts.

  • From: Jitendra Kotamraju < >
  • To:
  • Subject: [json-processing-spec users] Re: Introduction and some initial user thoughts.
  • Date: Mon, 2 Apr 2012 22:19:34 -0700

> 
> 
>>> 
>>> 
>>>> DirectWriter.objectWriter(writer)
>>>>             .string("firstName", "John")
>>>> 
>>> 
>>> I assume 'string()' here means "write an Object property with name
>>> 'firstName', and value "John"?
>>> This only works in Object context (i.e. when there is an open object);
>>> for array contexts we need separate set of method. Here it'd be
>>> possibly to just take one argument.
> 
> Yeah. I'm using different interfaces for writing an object and writing an 
> array...  see 
> https://github.com/davidillsley/scratch/blob/master/jsonp-wrap/src/org/i5y/json/wrap/DirectWriter.java


Yes, that's a cool generics trick. Someone else also suggested a builder 
(that is similar to above) to build JSON and make JsonArray/JsonObject 
immutable.

Jitu

[json-processing-spec users] Re: Introduction and some initial user thoughts.

java.net 04/02/2012

[json-processing-spec users] Re: Introduction and some initial user thoughts.

Tatu Saloranta 04/03/2012

[json-processing-spec users] Re: Introduction and some initial user thoughts.

Jörn Horstmann 04/08/2012

[json-processing-spec users] Re: Introduction and some initial user thoughts.

Jitendra Kotamraju 04/08/2012

[json-processing-spec users] Re: Introduction and some initial user thoughts.

Tatu Saloranta 04/08/2012

<Possible follow-up(s)>

[json-processing-spec users] Re: Introduction and some initial user thoughts.

Jitendra Kotamraju 04/03/2012
 
 
Close
loading
Please Confirm
Close