[#BloombergLP-bdljsn-JsonArray-maxSize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::maxSize :relfileprefix: ../../../ :mrdocs: Return a theoretical upper bound on the largest number of elements that this `JsonArray` could possibly hold. Requests to create a `JsonArray` longer than this number of elements are guaranteed to raise a `bsl::length_error` exception. Note that there is no guarantee that the `JsonArray` can successfully grow to the returned size, or even close to that size, without running out of resources. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t maxSize() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#