2014-07-15 13:50:49 +02:00
|
|
|
Arduino JSON: change log
|
|
|
|
|
========================
|
|
|
|
|
|
2014-09-09 21:32:27 +02:00
|
|
|
v3.4
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
* Fixed escaped char parsing (issue #16)
|
|
|
|
|
|
|
|
|
|
|
2014-09-01 21:14:09 +02:00
|
|
|
v3.3
|
|
|
|
|
----
|
|
|
|
|
|
2014-09-09 21:32:27 +02:00
|
|
|
* Added indented output for the JSON generator (issue #11), see example bellow.
|
2014-09-01 21:14:09 +02:00
|
|
|
* Added `IndentedPrint`, a decorator for `Print` to allow indented output
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
JsonOject<2> json;
|
|
|
|
|
json["key"] = "value";
|
|
|
|
|
json.prettyPrintTo(Serial);
|
|
|
|
|
|
2014-08-04 14:59:09 +02:00
|
|
|
v3.2
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
* Fixed a bug when adding nested object in `JsonArray` (bug introduced in v3.1).
|
|
|
|
|
|
2014-08-03 13:18:59 +02:00
|
|
|
v3.1
|
|
|
|
|
----
|
2014-07-31 20:28:52 +02:00
|
|
|
|
2014-08-03 15:54:16 +02:00
|
|
|
* Calling `Generator::JsonObject::add()` twice with the same `key` now replaces the `value`
|
|
|
|
|
* Added `Generator::JsonObject::operator[]`, see bellow the new API
|
2014-09-09 21:32:27 +02:00
|
|
|
* Added `Generator::JsonObject::remove()` (issue #9)
|
2014-07-31 20:28:52 +02:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
2014-07-19 15:23:40 +02:00
|
|
|
v3.0
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
* New parser API, see bellow
|
|
|
|
|
* Renamed `JsonHashTable` into `JsonObject`
|
2014-09-09 21:32:27 +02:00
|
|
|
* Added iterators for `JsonArray` and `JsonObject` (issue #4)
|
2014-07-19 15:23:40 +02:00
|
|
|
|
|
|
|
|
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];
|
|
|
|
|
|
2014-07-15 20:04:21 +02:00
|
|
|
v2.1
|
|
|
|
|
----
|
2014-07-15 13:50:49 +02:00
|
|
|
|
|
|
|
|
* Fixed case `#include "jsmn.cpp"` which caused an error in Linux (issue #6)
|
|
|
|
|
* Fixed a buffer overrun in JSON Parser (issue #5)
|
2014-07-02 13:59:13 +02:00
|
|
|
|
|
|
|
|
v2.0
|
|
|
|
|
----
|
|
|
|
|
|
2014-07-15 13:50:49 +02:00
|
|
|
* Added JSON encoding (issue #2)
|
2014-07-09 19:50:44 +02:00
|
|
|
* Renamed the library `ArduinoJsonParser` becomes `ArduinoJson`
|
2014-07-04 14:42:57 +02:00
|
|
|
|
|
|
|
|
**Breaking change**: you need to add the following line at the top of your program.
|
|
|
|
|
|
|
|
|
|
using namespace ArduinoJson::Parser;
|
2014-02-27 13:54:34 +01:00
|
|
|
|
2014-03-03 14:02:34 +01:00
|
|
|
v1.2
|
|
|
|
|
----
|
|
|
|
|
|
2014-07-15 13:50:49 +02:00
|
|
|
* Fixed error in JSON parser example (issue #1)
|
2014-03-03 14:02:34 +01:00
|
|
|
|
2014-02-27 19:51:24 +01:00
|
|
|
v1.1
|
2014-02-27 13:54:34 +01:00
|
|
|
----
|
|
|
|
|
|
2014-03-03 14:02:34 +01:00
|
|
|
* Example: changed `char* json` into `char[] json` so that the bytes are not write protected
|
2014-02-27 13:54:34 +01:00
|
|
|
* Fixed parsing bug when the JSON contains multi-dimensional arrays
|
|
|
|
|
|
|
|
|
|
v1.0
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
Initial release
|