Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72674

JSON.stringify(urlVar) should quote the string

    XMLWordPrintable

Details

    • 75ebbd0b354739150e10da7216b44e2dde2c2b14 (qt/qtdeclarative/5.12)

    Description

      My change at: https://codereview.qt-project.org/#/c/172431/4 improved the situation with URLs, but they are still broken. I didn't notice this when fixing the original issue because I was focused on getting output that I could print rather than making sure that the output was useful.

      Item {
          property url source: "https://qt.io"
          Component.onCompleted: console.log(JSON.stringify(source))
      } 

      The above should produce "https://qt.io" (with quotes), so that it can be properly parsed at the other end.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            w00t Robin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes