[
https://issues.apache.org/jira/browse/JOHNZON-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17271637#comment-17271637
]
Mark Struberg commented on JOHNZON-333:
---------------------------------------
but we return test as java String so {{"test"}} and not {{"\"test\""}} in Java
as we should.
> Invalid String serialization from JsonB string objects
> ------------------------------------------------------
>
> Key: JOHNZON-333
> URL: https://issues.apache.org/jira/browse/JOHNZON-333
> Project: Johnzon
> Issue Type: Bug
> Components: JSON-B
> Affects Versions: 1.2.10
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Priority: Major
>
> {code:java}
> jsonb.toJson("test");
> {code}
> should result in "test" as String. That includes quote.
> The spec says
> {quote}3.3.1 java.lang.String, Character
> Instances of type java.lang.String and java.lang.Character are serialized to
> JSON String values as defined within RFC 7159 Section 7 (Strings) [1] in
> UTF-8 encoding without a byte order mark.
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)