create a JSON value from an input in BSON format (iterator pair, or iterator+sentinel pair for C++20 ranges support)

Synopsis

Declared in <nlohmann/json.hpp>

template<
    typename IteratorType,
    typename SentinelType = IteratorType>
requires detail::can_compare_ne<IteratorType, SentinelType>::value
[[nodiscard]]
static
basic_json
from_bson(
    IteratorType first,
    SentinelType last,
    bool const strict = true,
    bool const allow_exceptions = true);

Return Value

a class to store JSON values

Note

The return value should not be discarded.

Created with MrDocs