|
10Duke Enterprise C++ SDK
|
#include <JSONBuilder.h>
Builds JSON objects.
Public Member Functions | |
| JSONObjectBuilder (bool pretty=true) | |
| Constructs new instance. | |
| JSONObjectBuilder & | property (const char *name, const JSONArrayBuilder &array) |
| Adds JSON array property. | |
| JSONObjectBuilder & | property (const char *name, const JSONObjectBuilder &object) |
| Adds JSON object property. | |
| JSONObjectBuilder & | property (const char *name, bool value) |
| Adds boolean property. | |
| JSONObjectBuilder & | property (const char *name, const char *value, bool evenIfValueEmpty=false) |
| Adds string property. | |
| JSONObjectBuilder & | property (const char *name, const std::string &value, bool evenIfValueEmpty=false) |
| Adds string property. | |
| JSONObjectBuilder & | property (const char *name, int value) |
| Adds int property. | |
| JSONObjectBuilder & | property (const char *name, std::int64_t value) |
| Adds int64-property. | |
| JSONObjectBuilder & | property (const char *name, std::uint64_t value) |
| Adds uin64t-property. | |
| JSONObjectBuilder & | property (const std::string &name, const JSONArrayBuilder &array) |
| Adds JSON array property. | |
| JSONObjectBuilder & | property (const std::string &name, const JSONObjectBuilder &object) |
| Adds JSON object property. | |
| JSONObjectBuilder & | property (const std::string &name, bool value) |
| Adds boolean property. | |
| JSONObjectBuilder & | property (const std::string &name, const char *value, bool evenIfValueEmpty=false) |
| Adds string property. | |
| JSONObjectBuilder & | property (const std::string &name, const std::string &value, bool evenIfValueEmpty=false) |
| Adds string property. | |
| JSONObjectBuilder & | property (const std::string &name, int value) |
| Adds int property. | |
| JSONObjectBuilder & | property (const std::string &name, std::int64_t value) |
| Adds int64 property. | |
| JSONObjectBuilder & | property (const std::string &name, std::uint64_t value) |
| Adds uint64 property. | |
Friends | |
| class | JSONBuilder |
| class | JSONArrayBuilder |
|
explicit |
Constructs new instance.
| pretty | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| bool | value ) |
Adds boolean property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| const char * | value, | ||
| bool | evenIfValueEmpty = false ) |
Adds string property.
| name | - |
| value | - |
| evenIfValueEmpty | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| const JSONArrayBuilder & | array ) |
Adds JSON array property.
| name | - |
| array | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| const JSONObjectBuilder & | object ) |
Adds JSON object property.
| name | - |
| object | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| const std::string & | value, | ||
| bool | evenIfValueEmpty = false ) |
Adds string property.
| name | - |
| value | - |
| evenIfValueEmpty | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| int | value ) |
Adds int property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| std::int64_t | value ) |
Adds int64-property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const char * | name, |
| std::uint64_t | value ) |
Adds uin64t-property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| bool | value ) |
Adds boolean property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| const char * | value, | ||
| bool | evenIfValueEmpty = false ) |
Adds string property.
| name | - |
| value | - |
| evenIfValueEmpty | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| const JSONArrayBuilder & | array ) |
Adds JSON array property.
| name | - |
| array | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| const JSONObjectBuilder & | object ) |
Adds JSON object property.
| name | - |
| object | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| const std::string & | value, | ||
| bool | evenIfValueEmpty = false ) |
Adds string property.
| name | - |
| value | - |
| evenIfValueEmpty | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| int | value ) |
Adds int property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| std::int64_t | value ) |
Adds int64 property.
| name | - |
| value | - |
| xdjson::JSONObjectBuilder & tenduke::json::JSONObjectBuilder::property | ( | const std::string & | name, |
| std::uint64_t | value ) |
Adds uint64 property.
| name | - |
| value | - |