Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-333

Invalid String serialization from JsonB string objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.10
    • 1.2.11
    • JSON-B
    • None

    Description

      jsonb.toJson("test");
      

      should result in "test" as String. That includes quote.
      The spec says

      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.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: