[#nlohmann-to_string] = xref:nlohmann.adoc[nlohmann]::to_string :relfileprefix: ../ :mrdocs: user‐defined to_string function for JSON values == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< template< typename, typename, typename...> typename ObjectType, template< typename, typename...> typename ArrayType, class StringType, class BooleanType, class NumberIntegerType, class NumberUnsignedType, class NumberFloatType, template<typename> typename AllocatorType, template< typename, typename = void> typename JSONSerializer, class BinaryType, class CustomBaseClass> std::string to_string(xref:nlohmann/basic_json-00.adoc[basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass>] const& j); ---- == Parameters [cols=2] |=== | Name | Description | *j* | a class to store JSON values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#