This class provides utility functions for converting arbitrary UTF-8 sequences into JSON strings and visa versa. See []Strings) for details of these transformations.
Declared in <bdljsn_stringutil.h>
struct StringUtil;
| Name | Description |
|---|---|
Flags | Flags controlling JSON string reading behavior. |
| Name | Description |
|---|---|
readString | readString overloads |
readUnquotedString | readUnquotedString overloads |
writeString | Write to the specified stream a JSON-compliant string that is equivalent to the specified string, an arbitrary UTF-8 codepoint sequence. Return 0 on success and a non-zero value otherwise. The operation fails if string is not a sequence of UTF-8 codepoints or if there is an error writing to stream. See []Arbitrary UTF-8 to JSON String) for further details. |