Load value into json using options.
Synopsis
Declared in <baljsn_jsonconverter.h>
template<class TYPE>
int
convert(
bdljsn::Json* json,
TYPE const& value,
ConvertToJsonOptions const& options = ConvertToJsonOptions());
Description
Load into the specified json the specified value of (template parameter) TYPE using the specified options. Return 0 on success, and a non‐zero value otherwise. An error is returned if TYPE is not a top‐level Sequence, Choice, or Array. The prior value of json is reset.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
json |
JSON object to load |
value |
value to convert |
options |
conversion options |
Created with MrDocs