Load the JSON representation of value into the specified json.
Declared in <baljsn_jsonformatter.h>
Load the JSON representation of value into the specified json.
static
int
valueAsJson(
bdljsn::Json* json,
char const* value,
EncoderOptions const* options);
» more...
Load the JSON representation of value into the specified json.
template<class TYPE>
static
int
valueAsJson(
bdljsn::Json* json,
TYPE const& value,
EncoderOptions const* options);
» more...
0 on success and a non-zero value otherwise
| Name | Description |
|---|---|
| json | JSON object to receive the encoded value |
| value | null-terminated string to encode |
| options | optional encoding options; null uses defaults |