[#BloombergLP-bdljsn-JsonArray-resize-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::resize
:relfileprefix: ../../../
:mrdocs:

`resize` overloads

== Synopses

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

Change the size of this array to the specified `count`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdljsn/JsonArray/resize-02.adoc[resize](std::size&lowbar;t count);
----

[.small]#xref:BloombergLP/bdljsn/JsonArray/resize-02.adoc[_» more&period;&period;&period;_]#

Change the size of this array to `count`, filling with `json` as needed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdljsn/JsonArray/resize-03.adoc[resize](
    std::size&lowbar;t count,
    xref:BloombergLP/bdljsn/Json.adoc[Json] const& json);
----

[.small]#xref:BloombergLP/bdljsn/JsonArray/resize-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *count*
| new number of elements
| *json*
| fill value for new elements
|===


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