As of September 9th, 2020 this resource property has been deprecated. The API still returns the value in JSON, but I tested with a number of channels, large and small, and they all report '0' for the commentCount field. See https://developers.google.com/youtube/v3/revision_history#september-9,-2020 for more info.
Because of this I've removed the commentCount print from both examples. ArduinoJSON gracefully handles missing values by reporting them as '0', so the struct value and parser can remain as is until the next major library release (3.0).
As of September 9th, 2020 this resource property has been deprecated. The API still returns the value in JSON, but I tested with a number of channels, large and small, and they all report '0' for the
commentCount
field. See https://developers.google.com/youtube/v3/revision_history#september-9,-2020 for more info.Because of this I've removed the
commentCount
print from both examples.ArduinoJSON
gracefully handles missing values by reporting them as '0', so the struct value and parser can remain as is until the next major library release (3.0).