JsonObject::size()
This page covers ArduinoJson 5.13.5, consider upgrading to version 6.21.2.
Description
Returns the number of key/value pairs in the object.
Signature
size_t size() const;
Return value
An unsigned integer containing the number of key/value pairs in the object.
Example
JsonObject& object = jsonBuffer.createObject();
object["hello"] = "world";
Serial.println(object.size()); // 1