[ 
https://issues.apache.org/jira/browse/JOHNZON-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17271645#comment-17271645
 ] 

Romain Manni-Bucau commented on JOHNZON-333:
--------------------------------------------

Ok, got abused by the quotes. Yes must be quoted. We have a toggle for it but 
should be the default in jsonb module. Wonder if we have 2 codepath for it.

> 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)

Reply via email to