ROOT 6.16/01 Reference Guide |
a JSON value
The actual storage for a JSON value of the basic_json class. This union combines the different storage types for the JSON value types defined in value_t.
JSON type | value_t type | used type |
---|---|---|
object | object | pointer to object_t |
array | array | pointer to array_t |
string | string | pointer to string_t |
boolean | boolean | boolean_t |
number | number_integer | number_integer_t |
number | number_unsigned | number_unsigned_t |
number | number_float | number_float_t |
null | null | no value is stored |
Public Member Functions | |
json_value ()=default | |
default constructor (for null values) More... | |
json_value (boolean_t v) noexcept | |
constructor for booleans More... | |
json_value (const array_t &value) | |
constructor for arrays More... | |
json_value (const object_t &value) | |
constructor for objects More... | |
json_value (const string_t &value) | |
constructor for strings More... | |
json_value (number_float_t v) noexcept | |
constructor for numbers (floating-point) More... | |
json_value (number_integer_t v) noexcept | |
constructor for numbers (integer) More... | |
json_value (number_unsigned_t v) noexcept | |
constructor for numbers (unsigned) More... | |
json_value (value_t t) | |
constructor for empty values of a given type More... | |
Public Attributes | |
array_t * | array |
array (stored with pointer to save storage) More... | |
boolean_t | boolean |
boolean More... | |
number_float_t | number_float |
number (floating-point) More... | |
number_integer_t | number_integer |
number (integer) More... | |
number_unsigned_t | number_unsigned |
number (unsigned integer) More... | |
object_t * | object |
object (stored with pointer to save storage) More... | |
string_t * | string |
string (stored with pointer to save storage) More... | |
|
default |
default constructor (for null values)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
array_t* nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::array |
boolean_t nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::boolean |
number_float_t nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::number_float |
number_integer_t nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::number_integer |
number_unsigned_t nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::number_unsigned |
object_t* nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::object |
string_t* nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::json_value::string |