serialization
Declared in <nlohmann/json.hpp>
string_t
dump(
int const indent = -1,
char const indent_char = ' ',
bool const ensure_ascii = false,
error_handler_t const error_handler = error_handler_t::strict) const;
string containing the serialization of the JSON value
| Name | Description |
|---|---|
| indent | if nonnegative, pretty-print with this number of indentation spaces per level; if negative (the default), the most compact representation is produced |
| indent_char | character used for indentation if indent is nonnegative |
| ensure_ascii | if true, all non-ASCII characters in the output are escaped with uXXXX sequences |
| error_handler | how to handle invalid UTF-8 sequences encountered while serializing |