[#BloombergLP-bdljsn-Json-makeString-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::makeString :relfileprefix: ../../../ :mrdocs: `makeString` overloads == Synopses Declared in `<bdljsn_json.h>` Set the value of this object to be a "String" value. Optionally specify the `value` of the "String". [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/Json/makeString-0a.adoc[makeString](std::string_view const& string); ---- [.small]#xref:BloombergLP/bdljsn/Json/makeString-0a.adoc[_» more..._]# Create an instance of type `bsl::string` in this object, using the allocator currently held by this object to supply memory. Optionally specify `string` to initialize the `bsl::string` created. This method first destroys the current value held by this object (even if the type currently held is `bsl::string`). The behavior is undefined unless `string` is valid UTF‐8 (see `bdlde::Utf8Util::isValid`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/Json/makeString-09.adoc[makeString](char const* string); ---- [.small]#xref:BloombergLP/bdljsn/Json/makeString-09.adoc[_» more..._]# Create an instance of type `bsl::string` in this object, using the allocator currently held by this object to supply memory. Optionally specify `string` to initialize the `bsl::string` created. This method first destroys the current value held by this object (even if the type currently held is `bsl::string`). This function does not participate in overload resolution unless the specified `t_STRING_TYPE` is `bsl::string`. The behavior is undefined unless `string` is valid UTF‐8 (see `bdlde::Utf8Util::isValid`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_STRING_TYPE> void xref:BloombergLP/bdljsn/Json/makeString-0d.adoc[makeString](xref:BloombergLP/bslmf/MovableRef_Deduced.adoc[BloombergLP::bslmf::MovableRef_Deduced<t_STRING_TYPE>] string) requires bsl::is_same<t_STRING_TYPE, bsl::string>::value; ---- [.small]#xref:BloombergLP/bdljsn/Json/makeString-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#