JSON for Modern C++
3.5.0
|
◆ 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>
RFC 7159 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 ( LimitsRFC 7159 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
|