You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2019/07/26 05:23:00 UTC

[jira] [Resolved] (JOHNZON-224) JsonbAdapter to JsonString serializes pedantically/incorrectly

     [ https://issues.apache.org/jira/browse/JOHNZON-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved JOHNZON-224.
----------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 1.1.13

Hi [~derekm], should work now on master if you want to give it a try.

Thanks a lot for the report.

 

> JsonbAdapter to JsonString serializes pedantically/incorrectly
> --------------------------------------------------------------
>
>                 Key: JOHNZON-224
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-224
>             Project: Johnzon
>          Issue Type: Bug
>          Components: JSON-B
>    Affects Versions: 1.1.12
>            Reporter: Derek Moore
>            Assignee: Romain Manni-Bucau
>            Priority: Major
>             Fix For: 1.1.13
>
>
> Adapting to JsonString to stringify complex or unsupported datatypes to JSON produces unexpected serializations like:
> {code:java}
> {"customerIds":[{"chars":"46c17c24-4b37-4205-9fa3-873380581a34","string":"46c17c24-4b37-4205-9fa3-873380581a34","valueType":"STRING"}]}{code}
> JSON-P JsonString serialization works as expected with Yasson.
> This is a violation of Section 3.20 of the JSON-B 1.0 spec:
> {quote}JSON Binding implementations MUST support binding of the following JSON Processing types:
>  ...
>  •    javax.json.JsonString
>  ...
> Serialization of supported _javax.json.*_ objects/interfaces/fields MUST have the same result as serialization these objects with _javax.json.JsonWriter_.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)