Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2120

Json escaping does not properly escape newlines and other control characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.1
    • 2.10.0
    • Layouts
    • None

    Description

      Newline procudes the string "\u000A" where we expect literal "\n" (two individual characters).

      The produced json is not parsable by some systems, pythoon -mjsontool for example.

      Attachments

        Issue Links

          Activity

            People

              mikaelstaldal Mikael Ståldal
              ckozak Carter Kozak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: