[#BloombergLP-bdljsn-Json-pushBack-04ff]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::pushBack
:relfileprefix: ../../../
:mrdocs:

Move&hyphen;append `string` to the held array&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;STRING&lowbar;TYPE&gt;
xref:BloombergLP/bdljsn/Json.adoc[Json]&
pushBack(xref:BloombergLP/bslmf/MovableRef_Deduced.adoc[BloombergLP::bslmf::MovableRef&lowbar;Deduced&lt;t&lowbar;STRING&lowbar;TYPE&gt;] string)
requires bsl&colon;&colon;is&lowbar;same&lt;t&lowbar;STRING&lowbar;TYPE,
                                         bsl&colon;&colon;string&gt;&colon;&colon;value;
----

== Description

Append to the end of this `Json` object&apos;s array an element having value of the specified `string` by moving (in constant time) the contents of `string` to the new element and return a non&hyphen;`const` reference to this object&period; If `isNull()`, then the type is changed to array&period; `string` is left in a valid but unspecified state&period; This function does not participate in overload resolution unless the specified `t&lowbar;STRING&lowbar;TYPE` is `bsl&colon;&colon;string`&period; The behavior is undefined unless `string` is valid UTF&hyphen;8 (see `bdlde&colon;&colon;Utf8Util&colon;&colon;isValid`)&period; The behavior is undefined unless `isArray()` or `isNull()`&period;

== Return Value

a reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string value to append
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
