1#ifndef TENDUKE_JSON_SIMPLEJSONSTRING_H
2#define TENDUKE_JSON_SIMPLEJSONSTRING_H
4#include "./SimpleJSONElement.h"
5#include "json/JSONString.h"
12 explicit SimpleJSONString(
const std::string &value)
13 : SimpleJSONElement(::tenduke::json::JSONElement::Type::STRING)
20 return std::string(
"\"") +
getValue() +
'"';
JSON string element.
Definition JSONString.h:14
Definition SimpleJSONElement.h:11
std::string getValue() const override
Returns the value of this string.
Definition SimpleJSONString.h:28
std::string asString() const override
Gets the value of the element as a string.
Definition SimpleJSONString.h:23
std::string asJSON() const override
Serializes the element as JSON.
Definition SimpleJSONString.h:18
JSON support.
Definition JSONArray.h:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4