[#BloombergLP-bdljsn-Json-2constructor-0be9] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::Json :relfileprefix: ../../../ :mrdocs: Create a `Json` object having the type `bsl::string` and the same value as the specified `string`. Optionally specify the `basicAllocator` used to supply memory. If `basicAllocator` is not specified, the currently installed default allocator is used to supply memory. The behavior is undefined unless `string` is valid UTF‐8 (see `bdlde::Utf8Util::isValid`). == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Json( char const* string, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#