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