#pragma once #include "schema_struct.h" using namespace schema; namespace schema{ namespace serializor{ class SchemJsonSerializor{ public: static void serialize(std::string &json, const schema::SCHEMA & _schema, const SCHEMA_VERSION &version = CURRENT_SCHEMA_VERSTION); static bool deserialize(const std::string &json, schema::SCHEMA & _schema, SCHEMA_VERSION &version); }; } }