mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-08 07:04:41 +02:00
Fixing incorrect code example. ContainsKey example call was to contains() which does not exist.
@@ -126,7 +126,7 @@ If the actual value doesn't match the target type, a default value will be retur
|
|||||||
|
|
||||||
If you want to know if some value is present, call `containsKey()`:
|
If you want to know if some value is present, call `containsKey()`:
|
||||||
|
|
||||||
if (root.contains("extra"))
|
if (root.containsKey("extra"))
|
||||||
{
|
{
|
||||||
// root["extra"] is valid
|
// root["extra"] is valid
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user