BloombergLP::baljsn::SimpleFormatter::addNullValue

Print a null JSON value with the specified name.

Synopsis

Declared in <baljsn_simpleformatter.h>

void
addNullValue(std::string_view const& name);

Description

Print onto the stream supplied at construction the value corresponding to a null element with the specified name, preceded, if necessary, by a comma. The behavior is undefined unless isNameNeeded() is true.

Parameters

NameDescription
namemember name for the null value