Set the value of the current scalar, array element, or object value ‐‐ depending on the context ‐‐ to the specified value of (template parameter) TYPE. The specified options is ignored except: * encodeInfAndNaNAsStrings when TYPE is a floating point type. * datetimeFractionalSecondPrecision when TYPE features a datetime or time attribute. Return 0 on success and a non‐zero value otherwise. Errors are returned if value is disallowed for bdljsn::Json objects: * value is a string type and contains a non‐UTF8 character. * value is a floating point type, is INF or NaN, and false == encodeInfAndNanAsStrings.
Synopsis
Declared in <baljsn_jsonformatter.h>
template<class TYPE>
int
putValue(
TYPE const& value,
EncoderOptions const* options = 0);
Created with MrDocs