You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Mark Struberg (Jira)" <ji...@apache.org> on 2021/02/03 13:32:01 UTC
[jira] [Resolved] (JOHNZON-333) Invalid String serialization from
JsonB string objects
[ https://issues.apache.org/jira/browse/JOHNZON-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved JOHNZON-333.
-----------------------------------
Resolution: Fixed
> 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
> Fix For: 1.2.11
>
>
> {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)