30#ifndef INCLUDE_OLA_WEB_JSONTYPES_H_
31#define INCLUDE_OLA_WEB_JSONTYPES_H_
85inline JsonType TypeFromValue<std::string>(
const std::string&) {
93inline JsonType TypeFromValue<uint32_t>(
const uint32_t&) {
101inline JsonType TypeFromValue<uint64_t>(
const uint64_t&) {
JsonType
The type of JSON data element.
Definition JsonTypes.h:44
@ JSON_NUMBER
Definition JsonTypes.h:49
@ JSON_STRING
Definition JsonTypes.h:51
@ JSON_OBJECT
Definition JsonTypes.h:50
@ JSON_BOOLEAN
Definition JsonTypes.h:46
@ JSON_NULL
Definition JsonTypes.h:48
@ JSON_INTEGER
Definition JsonTypes.h:47
@ JSON_ARRAY
Definition JsonTypes.h:45
@ JSON_UNDEFINED
Definition JsonTypes.h:52
string JsonTypeToString(JsonType type)
Get the string corresponding to a JsonType.
Definition JsonTypes.cpp:29
JsonType TypeFromValue(const T &)
Given a value, return the JsonType this value corresponds to.
Definition JsonTypes.h:112
JsonType StringToJsonType(const string &type)
Convert a string to a JsonType.
Definition JsonTypes.cpp:52
std::string GetTypename(const T &t)
Given a value, return the string name this value corresponds to.
Definition JsonTypes.h:80
The namespace containing all OLA symbols.
Definition Credentials.cpp:44