Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. QJson

QJson

LGPL-2.1C++

A Qt-based library for mapping JSON data to QVariant objects, now archived as Qt includes native JSON support.

Visit WebsiteGitHubGitHub
292 stars145 forks0 contributors

What is QJson?

QJson is a Qt-based library that maps JSON data to QVariant objects, allowing developers to easily convert between JSON and Qt's native data structures. It was created to provide JSON support for Qt3 and Qt4 applications before Qt5 included built-in JSON handling. The project is now archived as its functionality is superseded by Qt's native JSON capabilities.

Target Audience

Qt developers working with Qt3 or Qt4 who need to parse, serialize, or manipulate JSON data within their applications.

Value Proposition

QJson offered a straightforward and integrated solution for JSON processing in Qt environments before native support was available, with features like QObject mapping and a command-line tester for validation.

Overview

QJson is a qt-based library that maps JSON data to QVariant objects.

Use Cases

Best For

  • Adding JSON support to legacy Qt3 or Qt4 applications
  • Converting JSON data to QVariant objects for Qt-based projects
  • Serializing QVariant data structures to JSON format
  • Mapping JSON objects to QObject-derived classes in Qt
  • Testing JSON parsing and conversion in Qt environments
  • Integrating JSON data with Qt's type system before Qt5

Not Ideal For

  • Modern Qt5 or Qt6 projects with built-in JSON support
  • Teams requiring active maintenance, bug fixes, or new feature development
  • Applications needing compatibility with latest JSON standards or Qt advancements
  • Projects where LGPL licensing is too restrictive for distribution

Pros & Cons

Pros

Seamless Qt Integration

Directly maps JSON arrays to QVariantList and objects to QVariantMap, leveraging Qt's native type system for straightforward data conversion, as highlighted in the README.

QObject Mapping Utilities

Includes QObjectHelper for mapping JSON data to and from QObject-derived classes, simplifying serialization in Qt applications, with dedicated unit tests available.

Built-in Validation Tools

Provides a cmdline_tester for validating JSON parsing and conversion, aiding in debugging with command-line options, as described in the testing section.

Open Source License

Licensed under LGPL v2.1, allowing use in both open-source and proprietary projects with proper attribution, offering flexibility for legacy deployments.

Cons

Obsolete and Archived

The project is archived and no longer maintained, as Qt5 introduced native JSON support, rendering it redundant for modern development and risking unresolved issues.

Limited to Old Qt Versions

Only supports Qt 4.5 or greater, specifically targeting Qt3 and Qt4, making it incompatible with Qt5+ and missing out on newer Qt features and optimizations.

Complex Build Setup

Requires cmake and specific build options (e.g., -DCMAKE_BUILD_TYPE), which can be cumbersome compared to Qt's integrated build systems or modern package managers.

Frequently Asked Questions

Quick Stats

Stars292
Forks145
Contributors0
Open Issues23
Last commit6 months ago
CreatedSince 2012

Tags

#json-serializer#cmake#archived-project#cplusplus#json-parser#data-conversion

Built With

Q
Qt
C
CMake

Links & Resources

Website

Included in

C/C++70.6k
Auto-fetched 1 day ago

Related Projects

JSON for Modern C++JSON for Modern C++

JSON for Modern C++

Stars49,756
Forks7,400
Last commit2 days ago
simdjsonsimdjson

Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

Stars23,774
Forks1,256
Last commit4 days ago
RapidJSONRapidJSON

A fast JSON parser/generator for C++ with both SAX/DOM style API

Stars15,059
Forks3,639
Last commit1 year ago
cJSONcJSON

Ultralightweight JSON parser in ANSI C

Stars12,726
Forks3,486
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub