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

Mårten Nordheim marten.nordheim at qt.io
Tue Apr 13 21:42:41 CEST 2021


Hey Brett,

It's in the qt5compat library (https://code.qt.io/cgit/qt/qt5compat.git/tree/src/core5/serialization)

Mårten

________________________________________
From: Development <development-bounces at qt-project.org> on behalf of Stottlemyer, Brett (B.S.) <bstottle at ford.com>
Sent: Tuesday, April 13, 2021 21:20
To: Macieira, Thiago; development at qt-project.org
Subject: Re: [Development] State of "binary JSON" in 5.15+?

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

_______________________________________________
Development mailing list
Development at qt-project.org
https://lists.qt-project.org/listinfo/development


More information about the Development mailing list