Horizon
util.hpp
1 #pragma once
2 #include <Python.h>
3 #include "nlohmann/json_fwd.hpp"
4 
5 using json = nlohmann::json;
6 
7 bool json_init();
8 PyObject *py_from_json(const json &j);
9 json json_from_py(PyObject *o);
10 
11 class py_exception : public std::exception {
12 };
a class to store JSON values
Definition: json.hpp:177
Definition: util.hpp:11
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62