[Development] Json support for QtCore
robin+qt at viroteck.net
Sun Dec 11 01:31:02 CET 2011
On Sat, Dec 10, 2011 at 10:32 PM, <lars.knoll at nokia.com> wrote:
> I've benchmarked parsing speed and compared to the qjson
> (http://qjson.sourceforge.net/). It's around 7 times faster for the
> test.json file included in the project (the test case used in qjson as
I'd be interested to see how your parser fares compared to girish's
work (existing benchmark results, somewhat outdated probably, found at
- those results at least look a lot better than 7 times faster, but
they are also probably different test data.
But, parser aside: in general terms, I do think I agree that
converting to/from QVariant as an "API" isn' all that nice, so your
approach is a nice alternative.
I do think I'd like to see QDataStream operators on QJsonDocument,
btw. sending json documents in binary form to/from files or sockets
would be useful.
More information about the Development