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

QJsonObject::operator[] creates key if non-existent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • None
    • Linux/X11

    Description

      Using QJsonObject::operator[] with a key that doesn't exist will create that key in the object. Documentation says it does the same as value() but value() doesn't have this behavior.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            j-kappes Joel Kappes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes