size

val JsonElement.size: Int

Returns the number of entries if this JsonElement is a JsonObject. Extension property on JsonElement.