[#BloombergLP-bdljsn-Json-makeString-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::makeString
:relfileprefix: ../../../
:mrdocs:

Create an instance of type `bsl&colon;&colon;string` in this object, using the allocator currently held by this object to supply memory&period; Optionally specify `string` to initialize the `bsl&colon;&colon;string` created&period; This method first destroys the current value held by this object (even if the type currently held is `bsl&colon;&colon;string`)&period; The behavior is undefined unless `string` is valid UTF&hyphen;8 (see `bdlde&colon;&colon;Utf8Util&colon;&colon;isValid`)&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
makeString(char const* string);
----


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