Encode datum as JSON into result as a std::string.
Synopsis
Declared in <baljsn_datumutil.h>
static
int
encode(
std::string* result,
bdld::Datum const& datum);
Description
Same as the preceding overload, loading into a std::string.
Return Value
0 on success, a negative value on failure, or a positive value if strictTypes is enabled and an unsupported type is encoded
Parameters
Name |
Description |
result |
receives the encoded JSON string |
datum |
|
Created with MrDocs