@@ -23,7 +23,7 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
2323 JsonObject () {}
2424
2525 // INTERNAL USE ONLY
26- JsonObject (const detail::ObjectImpl & impl) : impl_(impl) {}
26+ JsonObject (const detail::VariantImpl & impl) : impl_(impl) {}
2727
2828 // INTERNAL USE ONLY
2929 JsonObject (detail::VariantData* data, detail::ResourceManager* resource)
@@ -44,13 +44,13 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
4444 // Returns true if the reference is unbound.
4545 // https://arduinojson.org/v7/api/jsonobject/isnull/
4646 bool isNull () const {
47- return impl_.isNull ();
47+ return ! impl_.isObject ();
4848 }
4949
5050 // Returns true if the reference is bound.
5151 // https://arduinojson.org/v7/api/jsonobject/isnull/
5252 operator bool () const {
53- return ! isNull ();
53+ return impl_. isObject ();
5454 }
5555
5656 // Returns the depth (nesting level) of the object.
@@ -80,7 +80,7 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
8080 // Removes all the members of the object.
8181 // https://arduinojson.org/v7/api/jsonobject/clear/
8282 void clear () const {
83- impl_.clear ();
83+ impl_.empty ();
8484 }
8585
8686 // Copies an object.
@@ -130,7 +130,7 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
130130 // Removes the member at the specified iterator.
131131 // https://arduinojson.org/v7/api/jsonobject/remove/
132132 FORCE_INLINE void remove (iterator it) const {
133- impl_.remove (it.iterator_ );
133+ impl_.removeMember (it.iterator_ );
134134 }
135135
136136 // Removes the member with the specified key.
@@ -233,7 +233,7 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
233233 return impl_.getData ();
234234 }
235235
236- mutable detail::ObjectImpl impl_;
236+ mutable detail::VariantImpl impl_;
237237};
238238
239239ARDUINOJSON_END_PUBLIC_NAMESPACE
0 commit comments