0 votes
in General by
How to delete an ArduinoJson nested key?

I'm surely missing something here.

Wondering is there a way to delete a nested key somewhere?
for example, if I want to remove the "J" from this JSON obj?

Can .remove() do this?

not sure as it brings up this error

error: 'class ArduinoJson::Internals::JsonObjectSubscript<const char*>' has no member named 'remove'


1 Answer

0 votes

If you are using the v5 of ArduinoJson


If you are using the v6 of ArduinoJson

JsonObject& hobj = root["H"];

Related questions

0 votes
1 answer 701 views
asked Sep 12, 2021 in Arduino by mithun (1.3k points)
0 votes
1 answer 784 views
0 votes
1 answer 794 views
asked Oct 4, 2021 in General by Tester Testee (220 points)
0 votes
1 answer 692 views
0 votes
2 answers 5.8k views
asked Jul 17, 2018 in General by anonymous