[#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. The behavior is undefined unless `isArray() || isObject()` evaluates to true. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t size() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#