* Calling `Generator::JsonObject::add()` twice with the same `key` now replaces the `value` * Added `Generator::JsonObject::operator[]`, see bellow the new API * Added `Generator::JsonObject::remove()`
Changes compared to 3.0:
- Calling
Generator::JsonObject::add()
twice with the samekey
now replaces thevalue
- Added
Generator::JsonObject::operator[]
, see bellow the new API - Added
Generator::JsonObject::remove()
Old generator API:
JsonObject<3> root;
root.add("sensor", "gps");
root.add("time", 1351824120);
root.add("data", array);
New generator API:
JsonObject<3> root;
root["sensor"] = "gps";
root["time"] = 1351824120;
root["data"] = array;
How to install?
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/