[Development] State of "binary JSON" in 5.15+?

Stottlemyer, Brett (B.S.) bstottle at ford.com
Tue Apr 13 21:20:49 CEST 2021


On Tuesday, 13 April 2021 07:29:48 PDT Lars Knoll wrote:

    The binary JSON support is deprecated and only there for backwards
    compatibility. It had some issues (e.g. it couldn’t handle large JSON
    files), that’s why we deprecated it. It’s gone in Qt 6. I guess the docs
    need some adjustment though.

I created https://bugreports.qt.io/browse/QTBUG-92826 for the
documentation.

On 4/13/21, 10:52 AM, "Development on behalf of Thiago Macieira" <development-bounces at qt-project.org on behalf of thiago.macieira at intel.com> wrote:

    There's a QBinaryJsonDocument class that is not part of QtCore or qtbase that
    you can use to load your old documents and then extract data from, even save
    data to it again if you need to retain compatibility. The limitation of 128 MB
    maximum size remains.

The 128 MB piece isn't an issue for my specific case, I will have smaller files than
that.  I was hoping there was an easy way to cache the REST response locally,
where I may load the data many times before I need to refresh the cache.  In this
case, additional storage is worthwhile is it improves the parsing time and memory
allocation.  I'd be interested in seeing if QBinaryJsonDocument is applicable, but I
can't find it.  Can I trouble you for a link?

Thanks to you both for the clarification.

Regards,
Brett



More information about the Development mailing list