1#ifndef TENDUKE_JSON_JSONELEMENT_H
2#define TENDUKE_JSON_JSONELEMENT_H
107 return "(INVALID TYPE)";
Superclass of JSON elements.
Definition JSONElement.h:12
bool isObject() const
Utility to check if this element is JSONObject.
Definition JSONElement.h:70
bool isNull() const
Utility to check if this element is null.
Definition JSONElement.h:58
virtual enum Type getType() const =0
Returns type of this element.
bool isUndefined() const
Utility to check if this element is undefined.
Definition JSONElement.h:82
bool isNumber() const
Utility to check if this element is JSONNumber.
Definition JSONElement.h:64
static std::string typeToString(const enum Type type)
Converts the type to string.
Definition JSONElement.h:90
bool isArray() const
Utility to check if this element is JSONArray.
Definition JSONElement.h:46
virtual std::string asString() const =0
Returns string representation of this element.
Type
Type of the element.
Definition JSONElement.h:17
bool isString() const
Utility to check if this element is JSONString.
Definition JSONElement.h:76
bool isBoolean() const
Utility to check if this element is JSONBoolean.
Definition JSONElement.h:52
JSON support.
Definition JSONArray.h:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4