create a JSON value from an input in UBJSON format
Synopsis
Declared in <nlohmann/json.hpp>
[[nodiscard, deprecated]]
static
basic_json
from_ubjson(
/* implementation-defined */::span_input_adapter&& i,
bool const strict = true,
bool const allow_exceptions = true);
|
Warning
|
Deprecated: Since 3.8.0; use from_ubjson(ptr, ptr + len). Use of this entity is allowed but discouraged. |
Return Value
a JSON value representing the input, or a discarded value if allow_exceptions is false and a parse error occurred
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
i |
an input in UBJSON format convertible to an input adapter |
strict |
whether to expect the input to be consumed until EOF |
allow_exceptions |
whether to throw exceptions in case of a parse error |
Created with MrDocs