Skip to content

JUSTSCIENCE0/MacroJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacroJson

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.

What problem does the library solve

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.

Documentation and usage examples

Third-party dependencies

  • RapidJSON - backend for working with JSON data. Fast and lightweight JSON parser, generator and validator for C++.

Russian version

About

Header-only library for reading, writing, and documenting JSON objects based on declarative description of data structure.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors