BloombergLP::bdljsn::JsonUtil::write

write overloads

Synopses

Declared in <bdljsn_jsonutil.h>

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::ostream& output,
    Json const& json);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::streambuf* output,
    Json const& json);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    bsl::string* output,
    Json const& json);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::pmr::string* output,
    Json const& json);
» more...

Write to the specified output a JSON text representation of the specified json document, using the optionally specified options for formatting the resulting text. Return 0 on success, and a non-zero value otherwise. Note that this operation will report an error only if there is an error writing to output.

static
int
write(
    std::string* output,
    Json const& json);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::ostream& output,
    Json const& json,
    WriteOptions const& options);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::streambuf* output,
    Json const& json,
    WriteOptions const& options);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    bsl::string* output,
    Json const& json,
    WriteOptions const& options);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::pmr::string* output,
    Json const& json,
    WriteOptions const& options);
» more...

Write to output a JSON text representation of json. Return 0 on success and a non-zero value otherwise. See the documented write overload for full contract details.

static
int
write(
    std::string* output,
    Json const& json,
    WriteOptions const& options);
» more...