[#BloombergLP-bdljsn-Json-size]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::size
:relfileprefix: ../../../
:mrdocs:

Return the number of elements in the `JsonObject` or `JsonArray` held by this object&period; The behavior is undefined unless `isArray() &verbar;&verbar; isObject()` evaluates to true&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
size() const;
----


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