jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Re: JSON-P Support

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Wed, 23 Jan 2013 11:25:00 -0500

On Jan 23, 2013, at 11:05 AM, Bill Burke <bburke_at_redhat.com> wrote:

> JSON-P will be a part of EE 7?

 Yes, it will.

-- Santiago

>
> On 1/23/2013 10:48 AM, Santiago Pericas-Geertsen wrote:
>> Hello Experts,
>>
>> We had an outstanding AI to look at the new JSON-P [1] API for any
>> potential integration points. After some discussions with Jitu (the
>> JSON-P lead), we'd like to propose adding support for the following types:
>>
>> (1) JsonStructure, JsonObject and JsonArray as entity parameters and
>> return types for JAX-RS resource methods. Note that a JsonStructure is
>> either a JsonObject or a JsonArray (a partition). If an entity param is
>> JsonObject and an array is received (or vice-versa) an exception will be
>> thrown.
>>
>> (2) We will _not_ provide any native support for JsonParser,
>> JsonGenerator, JsonReader or JsonWriter. All these are usable with
>> either an InputStream entity parameter or a StreamingOutput return type.
>>
>> Unless there are any strong objections, I will go ahead an update the
>> spec to add support for the types in (1).
>>
>> -- Santiago
>>
>> [1] http://jcp.org/en/jsr/detail?id=353
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com