Encode value into JSON and write it to stream.
Declared in <baljsn_printutil.h>
static
int
printValue(
std::ostream& stream,
int value,
EncoderOptions const* options = 0);
Encode the specified value into JSON format and output the result to the specified stream using the optionally specified options. Return 0 on success and a non-zero value otherwise.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | output stream for JSON |
| value | value to encode |
| options | encoding options; null uses defaults |