[#BloombergLP-bdljsn-Json-makeObject-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::makeObject :relfileprefix: ../../../ :mrdocs: `makeObject` overloads == Synopses Declared in `<bdljsn_json.h>` Create an instance of type `JsonObject` in this object, using the allocator currently held by this object to supply memory, and return a reference providing modifiable access to the created instance. Optionally specify `object` to initialize the `JsonObject` created. This method first destroys the current value held by this object (even if the type currently held is `JsonObject`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]& xref:BloombergLP/bdljsn/Json/makeObject-0a.adoc[makeObject](); ---- [.small]#xref:BloombergLP/bdljsn/Json/makeObject-0a.adoc[_» more..._]# Set the value of this object to be a "Object" value. Optionally specify the `value` of the "Object". [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]& xref:BloombergLP/bdljsn/Json/makeObject-04.adoc[makeObject](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<JsonObject>] object); ---- [.small]#xref:BloombergLP/bdljsn/Json/makeObject-04.adoc[_» more..._]# Same as the overload taking no arguments, but initialize the created `JsonObject` from the specified `object`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]& xref:BloombergLP/bdljsn/Json/makeObject-0e.adoc[makeObject](xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject] const& object); ---- [.small]#xref:BloombergLP/bdljsn/Json/makeObject-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#