22 #include <nlohmann/json.hpp>
35 template <
typename DataType>
38 static nlohmann::json type()
40 auto object = nlohmann::json::object();
41 object[
"type"] =
"object";
50 static nlohmann::json type() {
return nlohmann::json::object(); }
53 template <
typename DataType>
56 static nlohmann::json type()
58 auto object = nlohmann::json::object();
59 object[
"type"] =
"array";
66 template <std::
floating_po
int DataType>
69 static nlohmann::json type()
71 auto object = nlohmann::json::object();
72 object[
"type"] =
"number";
77 template <std::
integral DataType>
80 static nlohmann::json type()
82 auto object = nlohmann::json::object();
83 object[
"type"] =
"integer";
91 static nlohmann::json type()
93 auto object = nlohmann::json::object();
94 object[
"type"] =
"boolean";
102 static nlohmann::json type()
104 auto object = nlohmann::json::object();
105 object[
"type"] =
"string";
Main Caffa namespace.
Definition: __init__.py:1
Definition: cafJsonDataType.h:37