JSON for Modern C++ 3.10.3
|
◆ array_t
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>>
RFC 8259 describes JSON arrays as follows:
To store objects in C++, a type is defined by the template parameters explained below.
Default typeWith the default values for ArrayType ( std::vector<
basic_json, // value_type
std::allocator<basic_json> // allocator_type
>
LimitsRFC 8259 specifies:
In this class, the array's limit of nesting is not explicitly constrained. However, a maximum depth of nesting may be introduced by the compiler or runtime environment. A theoretical limit can be queried by calling the max_size function of a JSON array. StorageArrays are stored as pointers in a basic_json type. That is, for any access to array values, a pointer of type
|