BloombergLP::baljsn::JsonFormatter_Util::valueAsJson<double>

Load the JSON representation of the double value into json.

Synopsis

Declared in <baljsn_jsonformatter.h>

template<>
int
valueAsJson<double>(
    bdljsn::Json* json,
    double const& value,
    EncoderOptions const* options);

Description

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
valuedouble value to encode
optionsoptional encoding options; null uses defaults