C++20 composable visitor library for data documents (JSON/CBOR semantics)
This C++20 library runs composable SAX-style visitors over data documents and data models with JSON/CBOR semantics, without building a DOM. Given a data model with bindings, it injects or extracts data via visitors; it ships serializers/deserializers for standard formats like JSON, BSON, CBOR, and CSV, supports custom formats for structured data, converts between formats by composing a serializer visitor on a deserializer, and composes filter visitors to extract subtrees or filter out keys. It is designed to fit on microcontrollers with very limited dynamic memory allocations by streaming data on-the-fly or working directly in a large preallocated buffer.
What it addresses
Existing libraries the author has worked with offer only a subset of these composable visitor, format-conversion, and low-memory features.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
C++20 composable visitor library for data documents (JSON/CBOR semantics)
This C++20 library runs composable SAX-style visitors over data documents and data models with JSON/CBOR semantics, without building a DOM. Given a data model with bindings, it injects or extracts data via visitors; it ships serializers/deserializers for standard formats like JSON, BSON, CBOR, and CSV, supports custom formats for structured data, converts between formats by composing a serializer visitor on a deserializer, and composes filter visitors to extract subtrees or filter out keys. It is designed to fit on microcontrollers with very limited dynamic memory allocations by streaming data on-the-fly or working directly in a large preallocated buffer.
Problem: Existing libraries the author has worked with offer only a subset of these composable visitor, format-conversion, and low-memory features.
Posted by @boricj · Original source ↗
Source text · @boricj · · Source ↗
I've just started a new personal project, a C++20 library for running composable visitors over data documents and data models with JSON/CBOR semantics, DOM-less.