JSON for Modern C++  3.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 = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
bool nlohmann::basic_json::is_discarded ( ) const
inlinenoexcept

This function returns true iff the JSON value was discarded during parsing with a callback function (see parser_callback_t).

Returns
true if type is discarded, false otherwise.
Complexity
Constant.
Todo:
Add example.