[
https://issues.apache.org/jira/browse/CXF-9077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko resolved CXF-9077.
-------------------------------
Resolution: Fixed
> JAX-RS 3.1+: Add support for JSON-P and JSON-B providers by default
> -------------------------------------------------------------------
>
> Key: CXF-9077
> URL: https://issues.apache.org/jira/browse/CXF-9077
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Reporter: Andriy Redko
> Assignee: Andriy Redko
> Priority: Major
> Fix For: 4.1.0
>
>
> h4.
> https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html
> h4. 11.2.6. Java API for JSON Processing
> In a product that supports the Java API for JSON Processing (JSON-P)
> [[18]|https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html#bib18],
> implementations MUST support entity providers for {{JsonValue}} and all of
> its sub-types: {{{}JsonStructure{}}}, {{{}JsonObject{}}}, {{{}JsonArray{}}},
> {{JsonString}} and {{{}JsonNumber{}}}.
> Note that other types from the JSON-P API such as {{{}JsonParser{}}},
> {{{}JsonGenerator{}}}, {{JsonReader}} and {{JsonWriter}} can also be
> integrated into JAX-RS applications using the entity providers for
> {{InputStream}} and {{{}StreamingOutput{}}}.
>
> h4. 11.2.7. Java API for JSON Binding
> In a product that supports the Java API for JSON Binding (JSON-B)
> [[19]|https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html#bib19],
> implementations MUST support entity providers for all Java types supported
> by JSON-B in combination with the following media types:
> {{{}application/json{}}}, {{text/json}} as well as any other media types
> matching {{/json}} or {{{}/*+json{}}}.
> Note that if JSON-B and JSON-P are both supported in the same environment,
> entity providers for JSON-B take precedence over those for JSON-P for all
> types except {{JsonValue}} and its sub-types.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)