|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
Extension point for JSONSerializer. More...
#include <Serializer.hpp>
Collaboration diagram for MayaFlux::IO::Serializer< T >:Static Public Member Functions | |
| static void | from_json (const nlohmann::json &j, T &out) |
| static nlohmann::json | to_json (const T &val) |
Extension point for JSONSerializer.
Specialize this struct for any type that JSONSerializer does not handle natively. The specialization must provide: static nlohmann::json to_json(const T&); static void from_json(const nlohmann::json&, T&);
Example — adding support for a custom Vec3 type:
Definition at line 30 of file Serializer.hpp.