7 return web::json::value(value);
13 return web::json::value::number(value);
19 return web::json::value::number(value);
25 return web::json::value::number(value);
29web::json::value SOIL::to_json<std::string>(
const std::string& value)
31 return web::json::value::string(utility::conversions::to_string_t(value));
35web::json::value SOIL::to_json<SOIL::TIME>(
const SOIL::TIME& value)
37 return to_json<std::string>(value.
rfc3339());
41web::json::value SOIL::to_json<SOIL::ENUM>(
const SOIL::ENUM& value)
43 return to_json<std::string>(value.
selected());
47web::json::value SOIL::to_json<SOIL::BOOL>(
const bool& value)
49 return web::json::value::boolean(value);
57 return value.as_double();
64 return value.as_integer();
70 return static_cast<int64_t
>(value.as_integer());
74std::string SOIL::to_value<std::string>(web::json::value
json)
76 return utility::conversions::to_utf8string(
json.as_string());
94 return json.as_bool();
std::string selected(void) const
Get selected value.
DLL std::string rfc3339(void) const
RFC3339 representation.
DLL int to_value< int >(web::json::value value)
DLL web::json::value to_json(const T &value)
Value to JSON.
DLL web::json::value to_json< int >(const int &value)
DLL double to_value< double >(web::json::value value)
DLL web::json::value to_json< double >(const double &value)
DLL int64_t to_value< int64_t >(web::json::value value)
DLL web::json::value to_json< int64_t >(const int64_t &value)
DLL bool to_value< bool >(web::json::value json)