Need help with ThorsSerializer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Loki-Astari
272 Stars 62 Forks Other 696 Commits 4 Opened issues

Description

C++ Serialization library for JSON

Services available

!
?

Need anything else?

Contributors list

# 115,940
Shell
review
c-plus-...
stl-con...
617 commits
# 655,202
C++
Shell
json-po...
c-plus-...
1 commit

ThorsSerializer

Support for

Build Status codecov.io
Code Review Code Review Code Review Code Review

Benchmark Results

Conformance mac linux
Performance max linux
For details see: JsonBenchmark

ThorStream

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.

HomeBrew

Can be installed via brew on Mac and Linux

brew install thors-serializer
  • Mac: https://formulae.brew.sh/formula/thors-serializer
  • Linux: https://formulae.brew.sh/formula-linux/thors-serializer

Header Only

To install header only version

git clone --single-branch --branch header-only https://github.com/Loki-Astari/ThorsSerializer.git

Version 2

I have deprecated the

jsonImport()
and
jsonExport()
functions. These have been replaced with
jsonImporter()
and
jsonExporter()
functions (though the original versions still exist but are marked
[[deprecated]]
). 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.

Contributors

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.