ase/serialize.hh file


Namespaces

namespace Ase
The Anklang C++ API namespace.

Classes

class Ase::WritNode
One entry in a Writ serialization document.
class Ase::Writ
Document containing all information needed to serialize and deserialize a Value.
template <typename T, typename = void>
struct Ase::WritConverter
Template to specialize string conversion for various data types.
template <class, class = void>
struct Ase::Has_serialize_f
Has_serialize_f<T> - Check if serialize(T&,WritNode&) is provided for T.

Functions

template <class T>
auto json_parse(const String& jsonstring, T& target) →  bool
Parse a well formed JSON string and assign contents to target.
template <class T>
auto json_parse(const String& jsonstring) →  T
Parse a well formed JSON string and return the resulting value.
template <class T>
auto json_stringify(const T& source, Writ::Flags flags = Writ::Flags(0)) →  String
Create JSON string from source.