49namespace nfx::serialization::json
97 doc = obj.serialize();
103 doc = obj.serialize( serializer );
116 "Type must either specialize SerializationTraits or have a serialize() member method" );
136 "Type must either specialize SerializationTraits or have a deserialize() member method" );
Generic document abstraction for JSON serialization.
Generic JSON document abstraction for serialization.
Templated JSON serializer with compile-time type mapping.
Document serialize(const T &obj) const
Serialize object to JSON document.
T deserialize(const Document &doc) const
Deserialize object from JSON document.
Default serialization traits - users can specialize this.
static void serialize(const T &obj, Document &doc)
Default serialize implementation - delegates to member method.
static void deserialize(T &obj, const Document &doc)
Default deserialize implementation - delegates to member method.