[#BloombergLP-bdljsn-Json-pushBack-00e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::pushBack :relfileprefix: ../../../ :mrdocs: Append a copy of `object` to the held array. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Json.adoc[Json]& pushBack(xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject] const& object); ---- == Description Append to the end of this `Json` object's array a copy of the specified `object` and return a non‐`const` reference to this object. If `isNull()`, then the type is changed to array. If an exception is thrown, `*this` is unaffected. Throw `bsl::length_error` if `size() == maxSize()`. The behavior is undefined unless `isArray()` or `isNull()`. == Return Value a reference providing modifiable access to this object == Parameters [cols="1,4"] |=== | Name| Description | *object* | value to append |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#