Load into value the UTF-8 equivalent of an unquoted JSON string.
Declared in <bdljsn_stringutil.h>
static
int
readUnquotedString(
bsl::string* value,
std::string_view const& string,
int flags = e_NONE);
Load to the specified value the UTF-8 codepoint sequence equivalent to the specified string, that is JSON-compliant absent the leading and trailing double quote characters (see []Strings)). Return 0 on success and a non-zero value otherwise. Optionally specify flags to request variances from certain rules of JSON decoding (see ).
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| value | receives the decoded UTF-8 string |
| string | unquoted JSON string contents to decode |
| flags | optional decoding variance flags |