json.h
Go to the documentation of this file.
1#pragma once
2
3#include "MyGraph.h"
4#include <SemanticObjectRelations/Serialization/json.h>
5
6namespace mygraph
7{
8 void to_json(nlohmann::json& j, const MyVertex& vertex);
9 void from_json(const nlohmann::json& j, MyVertex& vertex);
10
11 void to_json(nlohmann::json& j, const MyEdge& edge);
12 void from_json(const nlohmann::json& j, MyEdge& edge);
13
14 void to_json(nlohmann::json& j, const MyGraphAttributes& graph);
15 void from_json(const nlohmann::json& j, MyGraphAttributes& graph);
16} // namespace mygraph
Definition json.h:7
void to_json(nlohmann::json &j, const MyVertex &vertex)
Definition json.cpp:7
void from_json(const nlohmann::json &j, MyVertex &vertex)
Definition json.cpp:21