[#nlohmann-basic_json-00-dump]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::dump
:relfileprefix: ../../
:mrdocs:

serialization

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/basic_json-00/string_t.adoc[string&lowbar;t]
dump(
    int const indent = &hyphen;1,
    char const indent&lowbar;char = &apos; &apos;,
    bool const ensure&lowbar;ascii = false,
    xref:nlohmann/basic_json-00/error_handler_t.adoc[error&lowbar;handler&lowbar;t] const error&lowbar;handler = error&lowbar;handler&lowbar;t&colon;&colon;strict) const;
----

== Return Value

a type for a string

== Parameters

[cols="1,4"]
|===
|Name|Description

| *error&lowbar;handler*
| how to treat decoding errors
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
