|
|
*JSON | Pointer |
|
*SAX interface | type |
|
**brief returns the allocator associated with the container *sa | https: static allocator_type get_allocator() { return allocator_type() |
|
*brief returns version information on the library *sa | https: JSON_HEDLEY_WARN_UNUSED_RESULT static basic_json meta() { basic_json result |
|
| result ["copyright"] = "(C) 2013-2026 Niels Lohmann" |
|
return | result |
| ***name JSON value data types *The data types to store a JSON value These types are derived from *the template arguments passed to class ref basic_json **brief a type for an object *sa | https: using object_t = ObjectType<StringType |
|
***name JSON value data types *The data types to store a JSON value These types are derived from *the template arguments passed to class ref basic_json **brief a type for an object *sa | default_object_comparator_t |
|
***name JSON value data types *The data types to store a JSON value These types are derived from *the template arguments passed to class ref basic_json **brief a type for an object *sa | AllocatorType< std::pair< const StringType, basic_json > > |
|
*brief a type for an array *sa | https: using array_t = ArrayType<basic_json |
|
*brief a type for an array *sa | AllocatorType< basic_json > |
|
*brief a type for a string *sa | https: using string_t = StringType |
|
*brief a type for a boolean *sa | https: using boolean_t = BooleanType |
|
*brief a type for a number *(integer) *@sa https brief a type for a number *(unsigned) *@sa https brief a type for a number *(floating-point) *@sa https brief a type for a packed binary type *sa | https: using binary_t = nlohmann::byte_container_with_subtype<BinaryType> |
|
*brief object key comparator type *sa | https: using object_comparator_t = detail::actual_object_comparator_t<basic_json> |
|
***brief parser event types *sa | https: using parse_event_t = detail::parse_event_t |
|
*brief per element parser callback type *sa | https: using parser_callback_t = detail::parser_callback_t<basic_json> |
|
***name constructors and destructors *Constructors of class ref basic_json copy move constructor copy * | assignment |
|
***name constructors and destructors *Constructors of class ref basic_json copy move constructor copy static functions creating and the destructor *data | m_data = {} |
|
|
template<detail::value_t> |
| struct | detail::external_constructor |
|
template<typename> |
| class | ::nlohmann::json_pointer |
|
template<typename BasicJsonType, typename InputType> |
| class | ::nlohmann::detail::parser |
|
template<typename BasicJsonType> |
| class | ::nlohmann::detail::iter_impl |
|
template<typename BasicJsonType, typename CharType> |
| class | ::nlohmann::detail::binary_writer |
|
template<typename BasicJsonType, typename InputType, typename SAX> |
| class | ::nlohmann::detail::binary_reader |
|
template<typename BasicJsonType, typename InputAdapterType> |
| class | ::nlohmann::detail::json_sax_dom_parser |
|
template<typename BasicJsonType, typename InputAdapterType> |
| class | ::nlohmann::detail::json_sax_dom_callback_parser |
|
class | ::nlohmann::detail::exception |
template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>, class CustomBaseClass = void>
class basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >
namespace for Niels Lohmann
a class to store JSON values
- See also
- https://json.nlohmann.me/api/basic_json/
-
https://github.com/nlohmann
- Since
- version 1.0.0
a class to store JSON values
- Since
- version 1.0.0
template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>, class CustomBaseClass = void>
| using basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::parse_error |
Initial value:{
general exception of the basic_json class
Definition json.hpp:4489
exception indicating a parse error
Definition json.hpp:4589
template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>, class CustomBaseClass = void>
| using basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::reference |
Initial value:{
* the type of elements in a basic_json container
using value_type = basic_json value_type&
template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>, class CustomBaseClass = void>
| * * * name JSON value data types* The data types to store a JSON value These types are derived from* the template arguments passed to class ref basic_json* * brief a type for an object* sa basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::https |
Initial value:{
* @brief default object key comparator type
* The actual object key comparator type (@ref object_comparator_t) may be
* different.
* @sa https:
using default_object_comparator_t = std::less<StringType>