Properly escape string in tosjon()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.4
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      > tojson("asdf\x00adsf")
      "asdfadsf"

      should be "asdf\u0000asdf"

      > tojson("asdf\nadsf")
      "asdf
      adsf"

      should be "asdf\nasdf"

      > tojson("asdf
      adsf")
      "asdf\adsf"

      should be "asdf
      asdf"

            Assignee:
            Mathias Stearn
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: