Replies: 2 comments 2 replies
-
I do not fully understand what your project does. From a brief look, I see that you are using C++17 and Boost - both are not compatible with this library which targets C++11 and uses only the STL. Can you elaborate? |
Beta Was this translation helpful? Give feedback.
-
The target is actually C++14, with some refactoring I believe I can target C++11. Boost it's not a part of this, I added it just to show how to deal with types of other libraries. In a nutshell, the repo is a combination of :
In order to use it, in the C++ class / struct we add a public static constexpr member " properties ". Then we can call from - to json functions that works in a natural way and in an arbitrary depth and combination of objects. |
Beta Was this translation helpful? Give feedback.
-
hi,
I have created a repo at https://github.com/Spyros-DC/from_to_json , for json serialization - deserialization on top of nlohmann json. Some points that I find interesting are:
I have some examples at my repo at main function. I think that has many advantages over nlohmann json serialization - deserialization. Can you take a look?
Thanks for your time, best regards,
Spyros
Beta Was this translation helpful? Give feedback.
All reactions