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

QJsonObject iterator should return key/value pair

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: Other
    • None

    Description

      It would be nice if you could write:

      for (const auto &[key, value] : jsonValue) ...

      The iterator should return a key/value pair instead of a value. Otherwise you have to work with the iterator directly which makes the code much less readable.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            bubke Marco Bubke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes