BloombergLP::baljsn::Formatter::openMember

Print the start of a JSON member with the specified name.

Synopsis

Declared in <baljsn_formatter.h>

int
openMember(std::string_view const& name);

Description

Print onto the stream supplied at construction the sequence of characters designating the start of a member (referred to as a "name/value pair" in JSON) having the specified name. Return 0 on success and a non-zero value otherwise.

Return Value

0 on success and a non-zero value otherwise

Parameters

NameDescription
namemember name to print