[#nlohmann-format_as]
= xref:nlohmann.adoc[nlohmann]::format&lowbar;as
:relfileprefix: ../
:mrdocs:

user&hyphen;defined format&lowbar;as function for JSON values (fmt &lt;&equals; 11&period;0&period;x support)

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    template&lt;
    typename,
    typename,
    typename&period;&period;&period;&gt; typename ObjectType,
    template&lt;
    typename,
    typename&period;&period;&period;&gt; typename ArrayType,
    class StringType,
    class BooleanType,
    class NumberIntegerType,
    class NumberUnsignedType,
    class NumberFloatType,
    template&lt;typename&gt; typename AllocatorType,
    template&lt;
    typename,
    typename = void&gt; typename JSONSerializer,
    class BinaryType,
    class CustomBaseClass&gt;
std::string
format&lowbar;as(xref:nlohmann/basic_json-00.adoc[basic&lowbar;json&lt;ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass&gt;] const& j);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *j*
| a class to store JSON values
|===


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