JsonObjectConst::size()
Description
JsonObjectConst::size()
returns the number of key-value pairs in the object pointed by the JsonObjectConst
.
Internally, this function walks a linked-list to count the elements, so its time complexity is O(n).
If you want to loop over each key-value pair in the object, use iterators.
Signature
size_t size() const;
Return value
JsonObjectConst::size()
return an unsigned integer that contains the number of key-value pairs in the object.