BloombergLP::baljsn::JsonFormatter_Util::valueAsJson<Decimal_Type64>

Load the JSON representation of the Decimal64 value into json.

Synopsis

Declared in <baljsn_jsonformatter.h>

template<>
int
valueAsJson<Decimal_Type64>(
    bdljsn::Json* json,
    bdldfp::Decimal64 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
valueDecimal64 value to encode
optionsoptional encoding options; null uses defaults