johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Moore (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JOHNZON-224) JsonbAdapter to JsonString serializes pedantically/incorrectly
Date Thu, 25 Jul 2019 21:21:00 GMT

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

Derek Moore updated JOHNZON-224:
--------------------------------
    Description: 
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
...
{quote}

  was:
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.


> 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
>            Priority: Major
>
> 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
> ...
> {quote}



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

Mime
View raw message