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

JSON serializer doesn't consider sign bits of floating point values.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • dev
    • Protocol Buffers
    • None

    Description

      Floating point values such as -0.0f or -0.0 should be serialized to JSON value considering the sign bit, for example:

      {
          "testFloat": -0,
          "testDouble": -0
      }
      

      It seems the support of sign bits is missing in QJsonValue. Once confirmed the respective issue will be created for QtCore.

      Attachments

        Issue Links

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

          Activity

            People

              manordheim MÃ¥rten Nordheim
              semlanik Alexey Edelev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes