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

create a BJData serialization of a given JSON value

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
to&lowbar;bjdata(
    xref:nlohmann/basic_json-00.adoc[basic&lowbar;json] const& j,
    detail::output&lowbar;adapter&lt;char&gt; o,
    bool const use&lowbar;size = false,
    bool const use&lowbar;type = false,
    xref:nlohmann/basic_json-00/bjdata_version_t.adoc[bjdata&lowbar;version&lowbar;t] const version = bjdata&lowbar;version&lowbar;t&colon;&colon;draft2);
----

== Parameters

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

| *j*
| a class to store JSON values
| *version*
| how to encode BJData
|===


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