by Loki-Astari

Loki-Astari / ThorsSerializer

C++ Serialization library for JSON

223 Stars 60 Forks Last release: Not found Other 665 Commits 47 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Support for

Build Status
Code Review Code Review Code Review Code Review

Benchmark Results

Conformance mac linux
Performance max 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.


Can be installed via brew on Mac and Linux

brew install thors-serializer
  • Mac:
  • Linux:

Header Only

To install header only version

git clone --single-branch --branch header-only

Version 2

I have deprecated the

functions. These have been replaced with
functions (though the original versions still exist but are marked
). The main difference is that the new functions catch exceptions (by default) this makes the serialization work like normal C++ serialization and simply set the bad bit on the stream.


Added the all-contributers bot to generate the table.

One Page

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.