[#BloombergLP-bdljsn-Json-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::swap :relfileprefix: ../../../ :mrdocs: Exchange the value of this with that of the specified `other`. If an exception is thrown, both objects are left in valid but unspecified states. This operation guarantees O[1]complexity. The behavior is undefined unless this object was created with the same allocator as `other`. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/bdljsn/Json.adoc[Json]& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#