https://github.com/danieloneill/qtbson
Quick and dirty implementation to serialise QVariantMap into BSON and vice-versa
https://github.com/danieloneill/qtbson
Last synced: over 1 year ago
JSON representation
Quick and dirty implementation to serialise QVariantMap into BSON and vice-versa
- Host: GitHub
- URL: https://github.com/danieloneill/qtbson
- Owner: danieloneill
- License: cc0-1.0
- Created: 2021-04-24T11:36:24.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T17:25:26.000Z (over 1 year ago)
- Last Synced: 2025-02-12T10:18:48.965Z (over 1 year ago)
- Language: C++
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QtBSON
Quick and dirty implementation to serialise QVariantMap into BSON and vice-versa
Some caveats:
* The only top-level container allowed is a QVariantMap in either direction.
* Supported types are QVariantMap, QVariantList, Null (undefined QVariant or QString), bool, int, double, QString, QByteArray, and QDateTime. Other types are generally unimplemented. (QJSValue support exists, but is masked by "#ifdef", if you need it. It just bullies the value into a string.)
A test application is included which demonstrates how the class is interacted with.
Enjoy.