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

QJsonDocument::fromJson() & QCborValue::fromCbor() should have a QIODevice overload

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8
    • Core: Serialization
    • None
    • All

    Description

      `QJsonDocument::fromJson()` requires a `QByteArray` as the data to parse.
      Allowing a `QIODevice` would avoid obliging the caller to read and story a copy of the data.
      Incremental parsing is more memory-efficient.

      Noticed while reviewing the fix for QTBUG-127011.

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes