1#ifndef TENDUKE_JSON_SIMPLEJSONBOOLEAN_H
2#define TENDUKE_JSON_SIMPLEJSONBOOLEAN_H
4#include "./SimpleJSONElement.h"
5#include "json/JSONBoolean.h"
12 explicit SimpleJSONBoolean(
bool value)
13 : SimpleJSONElement(::tenduke::json::JSONElement::BOOLEAN), value(value)
19 return (value ==
true ?
"true" :
"false");
JSON boolean.
Definition JSONBoolean.h:12
bool getValue() const override
Returns the value.
Definition SimpleJSONBoolean.h:22
std::string asJSON() const override
Serializes the element as JSON.
Definition SimpleJSONBoolean.h:17
Definition SimpleJSONElement.h:11
JSON support.
Definition JSONArray.h:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4