Skip to content

Simple Json to class (De-)Serializer (a bit similar to c# json serializer)

License

Notifications You must be signed in to change notification settings

llxp/simple_json

Repository files navigation

simple_json

easy to implement/use Json string to class (De-)Serializer

USAGE:

to use the library, just perform the following steps:

  1. include the "Serializable.h" in the header files of the class you want to make serializable
  2. add simple_json::Serializable to the base classes of the class
  3. use the "addMember(memberName, member)" to add the members you want to include in the serialization
  4. use the inherited public member functions "fromString(pointer to json formatted string)" for deserialization and "toString()" to serialize the class instance

LIMITATIONS:

  1. arrays have to be of the type JsonParser::Vector to be able to work
  2. every mapped class needs to be derived from "simple_json::Serializable"

Contact:

You can contact me in github or via my email address: alt text

About

Simple Json to class (De-)Serializer (a bit similar to c# json serializer)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published