#include <json.hpp>
◆ Class
| Enumerator |
|---|
| Null | |
| Object | |
| Array | |
| String | |
| Floating | |
| Integral | |
| Boolean | |
◆ JSON() [1/8]
◆ JSON() [2/8]
| json::JSON::JSON |
( |
std::nullptr_t | | ) |
|
|
inline |
◆ JSON() [3/8]
◆ JSON() [4/8]
| json::JSON::JSON |
( |
initializer_list< JSON > | list | ) |
|
|
inline |
◆ JSON() [5/8]
| json::JSON::JSON |
( |
T | b, |
|
|
typename enable_if< is_same< T, bool >::value >::type * | = nullptr ) |
|
inlineexplicit |
◆ JSON() [6/8]
| json::JSON::JSON |
( |
T | i, |
|
|
typename enable_if< is_integral< T >::value &&!is_same< T, bool >::value >::type * | = nullptr ) |
|
inlineexplicit |
◆ JSON() [7/8]
| json::JSON::JSON |
( |
T | f, |
|
|
typename enable_if< is_floating_point< T >::value >::type * | = nullptr ) |
|
inlineexplicit |
◆ JSON() [8/8]
| json::JSON::JSON |
( |
T | s, |
|
|
typename enable_if< is_convertible< T, std::string >::value >::type * | = nullptr ) |
|
inlineexplicit |
◆ array_range() [1/2]
◆ array_range() [2/2]
◆ at() [1/4]
| JSON & json::JSON::at |
( |
const std::string & | key | ) |
|
|
inline |
◆ at() [2/4]
| const JSON & json::JSON::at |
( |
const std::string & | key | ) |
const |
|
inline |
◆ at() [3/4]
| JSON & json::JSON::at |
( |
size_t | index | ) |
|
|
inline |
◆ at() [4/4]
| const JSON & json::JSON::at |
( |
size_t | index | ) |
const |
|
inline |
◆ dump()
| std::string json::JSON::dump |
( |
long | depth = 1, |
|
|
std::string | tab = " " ) const |
|
inline |
◆ has_key()
| bool json::JSON::has_key |
( |
const std::string & | key | ) |
const |
|
inline |
◆ is_null()
| bool json::JSON::is_null |
( |
| ) |
const |
|
inline |
Functions for getting primitives from the JSON object.
◆ JSONType()
◆ length()
| long json::JSON::length |
( |
| ) |
const |
|
inline |
◆ Load()
| JSON json::JSON::Load |
( |
const std::string & | str | ) |
|
|
inlinestatic |
◆ object_range() [1/2]
| JSONWrapper< QuickFlatMap > json::JSON::object_range |
( |
| ) |
|
|
inline |
◆ object_range() [2/2]
◆ operator[]() [1/2]
| JSON & json::JSON::operator[] |
( |
const size_t | index | ) |
|
|
inline |
◆ operator[]() [2/2]
| JSON & json::JSON::operator[] |
( |
const std::string & | key | ) |
|
|
inline |
◆ size()
| int json::JSON::size |
( |
| ) |
const |
|
inline |
◆ to_bool() [1/2]
| bool json::JSON::to_bool |
( |
| ) |
const |
|
inline |
◆ to_bool() [2/2]
| bool json::JSON::to_bool |
( |
bool & | ok | ) |
const |
|
inline |
◆ to_float() [1/2]
| double json::JSON::to_float |
( |
| ) |
const |
|
inline |
◆ to_float() [2/2]
| double json::JSON::to_float |
( |
bool & | ok | ) |
const |
|
inline |
◆ to_int() [1/2]
| int64_t json::JSON::to_int |
( |
| ) |
const |
|
inline |
◆ to_int() [2/2]
| int64_t json::JSON::to_int |
( |
bool & | ok | ) |
const |
|
inline |
◆ to_string() [1/2]
| std::string json::JSON::to_string |
( |
| ) |
const |
|
inline |
◆ to_string() [2/2]
| std::string json::JSON::to_string |
( |
bool & | ok | ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- chai/ChaiScript-6.1.0/include/chaiscript/utility/json.hpp