create a JSON value from an input in CBOR format (iterator pair, or iterator+sentinel pair for C++20 ranges support)
Declared in <nlohmann/json.hpp>
template<
typename IteratorType,
typename SentinelType = IteratorType>
requires detail::can_compare_ne<IteratorType, SentinelType>::value
[[nodiscard]]
static
basic_json<>
from_cbor(
IteratorType first,
SentinelType last,
bool const strict = true,
bool const allow_exceptions = true,
cbor_tag_handler_t const tag_handler = cbor_tag_handler_t::error);
| Name | Description |
|---|---|
| tag_handler | how to treat CBOR tags |