Online documentation: https://loki-astari.github.io/ThorsAnvil/ThorsSerialize.html
This code is the basis for ThorsAnvil a C++ API for streaming objects.
Conformance mac linux
Performance mac linux
For details see: JsonBenchmark
Yet another JSON/YAML/BSON serialization library for C++.
Unlike other libraries this one does not require you to build DOM of you object before serialization. Using a declarative C++ style you define what C++ classes (and members) you want to serialize "ThorSerializer" will generate the appropriate code automagically.
- Objective
- Trivial Example
- Simple Example
- Bigger Example
- Polymorphic Example
- Installing
- Documentation Usage
Can be installed via brew on Mac and Linux
brew install thors-anvil
- Mac: https://formulae.brew.sh/formula/thors-anvil
- Linux: https://formulae.brew.sh/formula-linux/thors-anvil
To install header only version
git clone --single-branch --branch header-only https://github.com/Loki-Astari/ThorsAnvil.git
Some dependencies:
For All: Magic Enum: https://github.com/Neargye/magic_enum
For Json: None :-)
For Yaml: libYaml https://github.com/yaml/libyaml
To build on windows you will need to add the flag: /Zc:preprocessor. These libraries make heavy use of VAR_ARG macros to generate code for you so require conforming pre-processor. See Macro Expansion of VA_ARGS Bug in Visual Studio? for details.
Added the all-contributors bot to generate the table.
