Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1395

JsonToStringStyle does not escape double quote in a string value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.8
    • None
    • None

    Description

      From the user mailing list [1]:
      JsonToStringStyle does not escape double quote in a string value

      JSON requires double-quote to be escaped with a back-slash.

      This does not happen currently.

      Nor does the code translate control characters such as NL and FF correctly.

      AFAICT the code is only guaranateed to process alphanumeric strings correctly.

      [1] https://lists.apache.org/thread.html/10bb632e86c473d58656431ad2702e058c58585e1a2edf1bf4a46824@%3Cuser.commons.apache.org%3E

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebb Sebb
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: