bblanchon/ArduinoJson

Is it correct to replace doc.containsKey(name) with doc[name].is<JsonVariantConst>()) going from 7.1->7.2 ?

proddy opened this issue · 2 comments

If I want to just check if a key exists in a JsonDocument/JsonObject who's value can be of any type (bool, string, int), is the correct way now in release 7.2 to use doc[name].is<JsonVariantConst>()) ?

Yes, is<JsonVariantConst>() is the closest equivalent to containsKey().

thanks.