JSON for Modern C++
3.0.0
|
◆ array_t
template<template< typename, typename, typename... > class ObjectType = std::map, template< typename, typename... > 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 > class AllocatorType = std::allocator, template< typename, typename=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
|