Releases: bblanchon/ArduinoJson
Releases · bblanchon/ArduinoJson
ArduinoJson 4.2
ArduinoJson 4.1
Changes compared to 4.0:
- Added DynamicJsonBuffer (issue #19)
Packages:
- ArduinoJson-v4.1.zip for Arduino IDE >=1.0.6 and >=1.5.6
- ArduinoJson-v4.1-old-layout.zip for older versions
ArduinoJson 4.0
Changes compared to 3.4:
- Unified parser and generator API (issue #23)
- Updated library layout, now requires Arduino 1.0.6 or newer
BREAKING CHANGE: API changed significantly, see doc/Migrating to the new API.md
.
Requires Arduino IDE 1.0.6 or above.
ArduinoJson 4.0 beta 1
Changes compared to 3.4:
- Unified parser and generator API (issue #23)
- Updated library layout, now requires Arduino 1.0.6 or newer
BREAKING CHANGE: API changed significantly, see doc/Migrating to the new API.md
.
ArduinoJson 3.4
Changes compared to 3.3:
- Fixed escaped char parsing (issue #16)
How to install?
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/
ArduinoJson 3.3
Changes compared to 3.2:
- Added indented output for the JSON generator, see example bellow.
- Added
IndentedPrint
, a decorator forPrint
to allow indented output
Example:
JsonOject<2> json;
json["key"] = "value";
json.prettyPrintTo(Serial);
How to install?
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/
ArduinoJson 3.2
Changes compared to 3.1:
- Fixed a bug when adding nested object in
JsonArray
(bug introduced in v3.1).
How to install?
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/
ArduinoJson 3.1
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/
ArduinoJson 3.0
Changes compared to 2.1:
- New parser API, see bellow
- Renamed
JsonHashTable
intoJsonObject
- Added iterators for
JsonArray
andJsonObject
Old parser API:
JsonHashTable root = parser.parseHashTable(json);
char* sensor = root.getString("sensor");
long time = root.getLong("time");
double latitude = root.getArray("data").getDouble(0);
double longitude = root.getArray("data").getDouble(1);
New parser API:
JsonObject root = parser.parse(json);
char* sensor = root["sensor"];
long time = root["time"];
double latitude = root["data"][0];
double longitude = root["data"][1];
See this blog post for more details
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/