#ifndef HEADER_RT_H #define HEADER_RT_H #include #include #include #include "json.hpp" using json = nlohmann::json; typedef int Int; typedef int Int32; typedef unsigned int Word; typedef unsigned int Word32; typedef float Float; typedef bool Bool; typedef std::string String; template json toJSON(T &v); template json toJSON(std::vector &v) { json obj = json::array(); for (any i : v) { obj.push_back(toJSON(i)); } return obj; } template json toJSON(std::map &value) { return json(); } template T fromJSON(T &v, json &obj); template std::vector fromJSON(std::vector &v, json &obj) { std::vector a; return a; } template std::map fromJSON(std::map &value, json &obj) { std::map a; return a; } #endif