MacroJson is a header-only library for reading, writing, and documenting JSON objects based on declarative description of data structure.
The library allows automatically generating the following:
- C++ structure code
- JSON schema for documentation and data validation
- Functions for serializing and deserializing JSON objects
RapidJSON library is used as a backend for working with JSON data.
When working with JSON data in C++, it often requires writing duplicate code with identical semantics. This leads to duplicated logic, desynchronization between data structures, implementation of (de)serializers and documentation. MacroJson allows describing the data structure once and automatically generating all other code. This eliminates duplication, ensures consistency between all components and simplifies code maintenance.
- Getting Started
- CMake Generator
- Generated Functions
- Macro Description
- Advanced Features
- Supported Data Types
- Validation Parameters
- Code Generation from JSON Schema (Beta)
- Usage Example and full functionality demonstration
- RapidJSON - backend for working with JSON data. Fast and lightweight JSON parser, generator and validator for C++.