BloombergLP::bdljsn::operator""_json

Return a bdljsn::Json object from the specified JSON literal text.

Synopsis

Declared in <bdljsn_jsonliterals.h>

bdljsn::Json
operator""_json(
    char const* text,
    std::size_t numBytes);

Description

Return a bdljsn::Json object having the value of the JSON described in the specified text of the specified numBytes. If text is not a valid JSON document then invoke the currently installed bsls::Assert failure handler.

Return Value

a bdljsn::Json object having the value of the JSON in text

Parameters

NameDescription
textJSON text of the literal
numByteslength of text in bytes