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>>
constexpr bool nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::is_structured |
( |
| ) |
const |
|
inlineconstexprnoexcept |
return whether type is structured
This function returns true if and only if the JSON type is structured (array or object).
- Returns
true
if type is structured (array or object), false
otherwise.
@complexity Constant.
@exceptionsafety No-throw guarantee: this member function never throws exceptions.
@liveexample{The following code exemplifies is_structured()
for all JSON types.,is_structured}
- See also
- see is_primitive() – returns whether value is primitive
-
see is_array() – returns whether value is an array
-
see is_object() – returns whether value is an object
- Since
- version 1.0.0
Definition at line 20229 of file json.hpp.
20230 {
20232 }
constexpr bool is_object() const noexcept
return whether value is an object
constexpr bool is_array() const noexcept
return whether value is an array