a JSON value More...
Public Member Functions | |
json_value ()=default | |
default constructor (for null values) More... | |
json_value (boolean_t v) noexcept | |
constructor for booleans 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 (number_float_t v) noexcept | |
constructor for numbers (floating-point) More... | |
json_value (value_t t) | |
constructor for empty values of a given type More... | |
json_value (const string_t &value) | |
constructor for strings More... | |
json_value (string_t &&value) | |
constructor for rvalue strings More... | |
json_value (const object_t &value) | |
constructor for objects More... | |
json_value (object_t &&value) | |
constructor for rvalue objects More... | |
json_value (const array_t &value) | |
constructor for arrays More... | |
json_value (array_t &&value) | |
constructor for rvalue arrays More... | |
void | destroy (value_t t) noexcept |
Public Attributes | |
object_t * | object |
object (stored with pointer to save storage) More... | |
array_t * | array |
array (stored with pointer to save storage) More... | |
string_t * | string |
string (stored with pointer to save storage) More... | |
boolean_t | boolean |
boolean More... | |
number_integer_t | number_integer |
number (integer) More... | |
number_unsigned_t | number_unsigned |
number (unsigned integer) More... | |
number_float_t | number_float |
number (floating-point) More... | |
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 |
|
default |
default constructor (for null values)
|
inlinenoexcept |
|
inlinenoexcept |
constructor for numbers (integer)
Definition at line 15436 of file json.hpp.
|
inlinenoexcept |
constructor for numbers (unsigned)
Definition at line 15438 of file json.hpp.
|
inlinenoexcept |
constructor for numbers (floating-point)
Definition at line 15440 of file json.hpp.
|
inline |
constructor for empty values of a given type
Definition at line 15442 of file json.hpp.
|
inline |
constructor for strings
Definition at line 15507 of file json.hpp.
|
inline |
constructor for rvalue strings
Definition at line 15513 of file json.hpp.
|
inline |
constructor for objects
Definition at line 15519 of file json.hpp.
|
inline |
constructor for rvalue objects
Definition at line 15525 of file json.hpp.
|
inline |
constructor for arrays
Definition at line 15531 of file json.hpp.
|
inline |
constructor for rvalue arrays
Definition at line 15537 of file json.hpp.
|
inlinenoexcept |
Definition at line 15542 of file json.hpp.
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 |