[jax-rs-spec users] JSON PROCESSING (JSR 374) adaption

From: Alex Soto <>
Date: Tue, 03 Nov 2015 13:09:43 +0000

Hi Experts, this is Alex, member of expert group Json Processing API (JSR

In next release of JSR 374 there are some things that I think JAXRS spec
should cover so we can have a tight integration between specs. At the end
is about the support we have implemented about JSON PATCH (

I suggest that:

   1. @PATCH annotation should be provided as it is provided for GET, POST,
   2. A new MediaType should be added. Concretely
   3. Permit that users can do:

public Response applyPatch(JsonPatch patch, ....){}

Basically that if method is annotated with PATCH and consumes PATCH then
you know that the content is going to be a JsonPatch element on the body of
the message so JAXRS can construct the object for the user in similar way
as it happens with JsonObject or JsonArray.