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

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

XMLWordPrintable

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

      `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.

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

            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

              Created:
              Updated:

                There are no open Gerrit changes