-
Hi everyone,
I’m excited to share a new Qt library I’ve developed: QJsonVariant – a fast and lightweight JSON parser/writer designed to work directly with QVariant.
This library offers a performance-focused alternative to the native QJsonDocument approach. Unlike QJsonDocument::fromJson().toVariant(), which performs two iterations, QJsonVariant completes the parsing in a single pass, providing improved performance especially when working with large JSON data.
Key Features:
Directly parses JSON into QVariant and vice versa
Faster than QJsonDocument thanks to a single-pass implementation
Simple and easy to integrate into existing Qt projects
The source code and usage examples are available here: https://github.com/Romain-Donze/QJsonVariant
I’d love to hear your feedback and suggestions. Feel free to try it out and let me know how it works for your use cases!
-
J jsulm moved this topic from General and Desktop
-