Skip to content

Releases: bblanchon/ArduinoJson

ArduinoJson 3.3

01 Sep 19:46
Compare
Choose a tag to compare

Changes compared to 3.2:

  • Added indented output for the JSON generator, see example bellow.
  • Added IndentedPrint, a decorator for Print 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

04 Aug 13:26
Compare
Choose a tag to compare

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

03 Aug 13:59
Compare
Choose a tag to compare

Changes compared to 3.0:

  • 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()

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

23 Jul 18:27
Compare
Choose a tag to compare

Changes compared to 2.1:

  • New parser API, see bellow
  • Renamed JsonHashTable into JsonObject
  • Added iterators for JsonArray and JsonObject

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/

ArduinoJson 2.1

15 Jul 18:09
Compare
Choose a tag to compare

Changes compared to 2.0:

  • Fixed case #include "jsmn.cpp" which caused an error in Linux (issue #6)
  • Fixed a buffer overrun in JSON Parser (issue #5)

To use this library with the Arduino IDE, you need to unzip the attached file into

<path_to_your_sketches>/libraries/

ArduinoJson 2.0

09 Jul 18:57
Compare
Choose a tag to compare

Changes compared to 1.2:

  • Added JSON encoding.

Breaking change: you need to add the following line at the top of your program.

using namespace ArduinoJson::Parser;

ArduinoJsonParser 1.2

03 Mar 13:05
Compare
Choose a tag to compare

Changes compared to 1.1:

  • Example: changed char[] json into char json[]. Damn it C# !

To use this library with the Arduino IDE, you need to unzip the attached file into

<path_to_your_sketches>/libraries/

ArduinoJsonParser 1.1

27 Feb 19:02
Compare
Choose a tag to compare

Changes compared to 1.0:

  • Example: changed char* json into char json[] so that the bytes are not write-protected
  • Fixed parsing bug when the JSON contains multi-dimensional arrays

To use this library with the Arduino IDE, you need to unzip the attached file into

<path_to_your_sketches>/libraries/

ArduinoJsonParser 1.0

17 Feb 12:28
Compare
Choose a tag to compare

To use this library with the Arduino IDE, you need to unzip the attached file into <path_to_your_sketches>/libraries/

Then restart Arduino IDE and the sample program will be available in the menu.
image