BloombergLP::baljsn::JsonFormatter_Util::valueAsJson

Load the JSON representation of value into the specified json.

Synopsis

Declared in <baljsn_jsonformatter.h>

static
int
valueAsJson(
    bdljsn::Json* json,
    char const* value,
    EncoderOptions const* options);

Description

Optionally use the specified options. Return 0 on success and a non-zero value otherwise.

Return Value

0 on success and a non-zero value otherwise

Parameters

NameDescription
jsonJSON object to receive the encoded value
valuenull-terminated string to encode
optionsoptional encoding options; null uses defaults