2015-05-23 15:32:50 +02:00
ArduinoJson: change log
=======================
2018-04-17 21:27:45 +02:00
* Added `DynamicJsonDocument` and `StaticJsonDocument`
2018-03-01 09:24:58 +01:00
* Added `deserializeJson()`
* Added `serializeJson()` and `serializeJsonPretty()`
* Added `measureJson()` and `measureJsonPretty()`
2018-05-29 08:31:17 +02:00
* Added `serializeMsgPack()` , `deserializeMsgPack()` and `measureMsgPack()` (issue #358 )
2018-04-10 17:55:51 +02:00
* Added example `MsgPackParser.ino` (issue #358 )
2018-05-14 17:12:59 +02:00
* Added support for non zero-terminated strings (issue #704 )
2018-03-01 09:24:58 +01:00
* Removed `JsonBuffer::parseArray()` , `parseObject()` and `parse()`
* Removed `JsonBuffer::createArray()` and `createObject()`
* Removed `printTo()` and `prettyPrintTo()`
* Removed `measureLength()` and `measurePrettyLength()`
2018-03-15 09:43:10 +01:00
* Removed all deprecated features
2018-02-26 16:05:16 +01:00
> ### BREAKING CHANGES
>
> #### Deserialization
>
> Old code:
>
> ```c++
> DynamicJsonBuffer jb;
> JsonObject& obj = jb.parseObject(json);
> if (obj.success()) {
>
> }
> ```
>
> New code:
>
> ```c++
2018-04-17 21:27:45 +02:00
> DynamicJsonDocument doc;
2018-05-15 18:23:09 +02:00
> DeserializationError error = deserializeJson(doc, json);
2018-03-09 16:58:01 +01:00
> if (error) {
2018-02-26 16:05:16 +01:00
>
> }
2018-04-17 21:27:45 +02:00
> JsonObject& obj = doc.as<JsonObject>();
2018-02-26 16:05:16 +01:00
> ```
>
> #### Serialization
>
> Old code:
>
> ```c++
> DynamicJsonBuffer jb;
> JsonObject& obj = jb.createObject();
> obj["key"] = "value";
> obj.printTo(Serial);
> ```
>
> New code:
>
> ```c++
2018-04-17 21:27:45 +02:00
> DynamicJsonDocument obj;
> JsonObject& obj = doc.to<JsonObject>();
2018-02-26 16:05:16 +01:00
> obj["key"] = "value";
2018-04-17 21:27:45 +02:00
> serializeJson(doc, Serial);
2018-02-26 16:05:16 +01:00
> ```
2018-06-01 09:21:42 +02:00
v5.13.2
-------
2018-03-12 18:28:37 +01:00
* Fixed `JsonBuffer::parse()` not respecting nesting limit correctly (issue #693 )
* Fixed inconsistencies in nesting level counting (PR #695 from Zhenyu Wu)
2018-06-01 09:08:38 +02:00
* Fixed null values that could be pass to `strcmp()` (PR #745 from Mike Karlesky)
2018-06-01 09:16:45 +02:00
* Added macros `ARDUINOJSON_VERSION` , `ARDUINOJSON_VERSION_MAJOR` ...
2018-03-12 18:28:37 +01:00
2018-02-19 08:54:37 +01:00
v5.13.1
-------
2018-02-09 09:05:29 +01:00
* Fixed `JsonVariant::operator|(int)` that returned the default value if the variant contained a double (issue #675 )
2018-02-16 11:04:07 +01:00
* Allowed non-quoted key to contain underscores (issue #665 )
2018-02-09 09:05:29 +01:00
2018-01-19 15:35:19 +01:00
v5.13.0
-------
2018-01-14 13:46:28 +01:00
* Changed the rules of string duplication (issue #658 )
2018-01-18 09:43:37 +01:00
* `RawJson()` accepts any kind of string and obeys to the same rules for duplication
2018-01-14 13:49:37 +01:00
* Changed the return type of `strdup()` to `const char*` to prevent double duplication
2018-01-14 14:02:10 +01:00
* Marked `strdup()` as deprecated
2018-01-14 13:46:28 +01:00
> ### New rules for string duplication
>
2018-01-18 09:43:37 +01:00
> | type | duplication |
> |:---------------------------|:------------|
> | const char* | no |
> | char* | ~~no~~ yes |
> | String | yes |
> | std::string | yes |
> | const __FlashStringHelper* | yes |
2018-01-14 13:46:28 +01:00
>
> These new rules make `JsonBuffer::strdup()` useless.
2017-12-11 17:50:18 +01:00
v5.12.0
-------
2017-11-29 09:49:40 +01:00
2017-12-15 17:52:47 +01:00
* Added `JsonVariant::operator|` to return a default value (see below)
2017-12-03 13:49:51 +01:00
* Added a clear error message when compiled as C instead of C++ (issue #629 )
2017-12-05 21:18:21 +01:00
* Added detection of MPLAB XC compiler (issue #629 )
2017-12-05 21:24:28 +01:00
* Added detection of Keil ARM Compiler (issue #629 )
2017-12-11 17:20:27 +01:00
* Added an example that shows how to save and load a configuration file
* Reworked all other examples
2017-11-13 15:47:26 +01:00
2017-11-29 09:49:40 +01:00
> ### How to use the new feature?
>
> If you have a block like this:
>
> ```c++
> const char* ssid = root["ssid"];
> if (!ssid)
> ssid = "default ssid";
> ```
>
> You can simplify like that:
>
> ```c++
> const char* ssid = root["ssid"] | "default ssid";
> ```
2017-10-17 10:21:52 +02:00
v5.11.2
-------
2017-08-30 21:51:10 +02:00
* Fixed `DynamicJsonBuffer::clear()` not resetting allocation size (issue #561 )
2017-10-17 10:19:21 +02:00
* Fixed incorrect rounding for float values (issue #588 )
2017-08-30 21:51:10 +02:00
2017-07-14 11:17:11 +02:00
v5.11.1
-------
2017-07-07 23:04:42 +02:00
* Removed dependency on `PGM_P` as Particle 0.6.2 doesn't define it (issue #546 )
2017-07-09 15:24:58 +02:00
* Fixed warning "dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]"
* Fixed warning "floating constant exceeds range of 'float' [-Woverflow]" (issue #544 )
2017-07-14 11:14:50 +02:00
* Fixed warning "this statement may fall through" [-Wimplicit-fallthrough=] (issue #539 )
2017-07-09 15:24:58 +02:00
* Removed `ARDUINOJSON_DOUBLE_IS_64BITS` as it became useless.
2017-07-14 10:51:46 +02:00
* Fixed too many decimals places in float serialization (issue #543 )
2017-07-07 23:04:42 +02:00
2017-06-25 15:11:57 +02:00
v5.11.0
-------
2017-06-17 14:17:01 +02:00
* Made `JsonBuffer` non-copyable (PR #524 by @luisrayas3 )
2017-06-17 14:50:21 +02:00
* Added `StaticJsonBuffer::clear()`
2017-06-17 16:48:40 +02:00
* Added `DynamicJsonBuffer::clear()`
2017-06-17 14:17:01 +02:00
2017-06-12 21:10:02 +02:00
v5.10.1
-------
2017-05-28 15:33:03 +02:00
* Fixed IntelliSense errors in Visual Micro (issue #483 )
2017-06-01 20:47:09 +02:00
* Fixed compilation in IAR Embedded Workbench (issue #515 )
2017-06-03 16:22:26 +02:00
* Fixed reading "true" as a float (issue #516 )
2017-06-01 20:47:09 +02:00
* Added `ARDUINOJSON_DOUBLE_IS_64BITS`
* Added `ARDUINOJSON_EMBEDDED_MODE`
2017-05-28 15:33:03 +02:00
2017-05-20 09:11:03 +02:00
v5.10.0
-------
2017-05-02 21:29:45 +02:00
2017-05-20 09:06:53 +02:00
* Removed configurable number of decimal places (issues #288 , #427 and #506 )
2017-06-01 20:47:09 +02:00
* Changed exponentiation thresholds to `1e7` and `1e-5` (issues #288 , #427 and #506 )
2017-05-20 09:06:53 +02:00
* `JsonVariant::is<double>()` now returns `true` for integers
2017-05-02 21:29:45 +02:00
* Fixed error `IsBaseOf is not a member of ArduinoJson::TypeTraits` (issue #495 )
2017-05-04 21:58:28 +02:00
* Fixed error `forming reference to reference` (issue #495 )
2017-05-02 21:29:45 +02:00
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGES :warning:
>
> | Old syntax | New syntax |
> |:--------------------------------|:--------------------|
> | `double_with_n_digits(3.14, 2)` | `3.14` |
> | `float_with_n_digits(3.14, 2)` | `3.14f` |
> | `obj.set("key", 3.14, 2)` | `obj["key"] = 3.14` |
> | `arr.add(3.14, 2)` | `arr.add(3.14)` |
>
> | Input | Old output | New output |
> |:----------|:-----------|:-----------|
> | `3.14159` | `3.14` | `3.14159` |
> | `42.0` | `42.00` | `42` |
> | `0.0` | `0.00` | `0` |
>
> | Expression | Old result | New result |
> |:-------------------------------|:-----------|:-----------|
> | `JsonVariant(42).is<int>()` | `true` | `true` |
> | `JsonVariant(42).is<float>()` | `false` | `true` |
> | `JsonVariant(42).is<double>()` | `false` | `true` |
2017-05-20 09:06:53 +02:00
2017-04-24 21:43:03 +02:00
v5.9.0
------
2017-04-12 21:00:13 +02:00
* Added `JsonArray::remove(iterator)` (issue #479 )
* Added `JsonObject::remove(iterator)`
2017-04-12 17:03:33 +02:00
* Renamed `JsonArray::removeAt(size_t)` into `remove(size_t)`
2017-04-20 10:04:40 +02:00
* Renamed folder `include/` to `src/`
2017-04-20 11:19:29 +02:00
* Fixed warnings `floating constant exceeds range of float` and `floating constant truncated to zero` (issue #483 )
2017-04-22 11:33:40 +02:00
* Removed `Print` class and converted `printTo()` to a template method (issue #276 )
* Removed example `IndentedPrintExample.ino`
2017-04-24 21:35:41 +02:00
* Now compatible with Particle 0.6.1, thanks to Jacob Nite (issue #294 and PR #461 by @foodbag )
2017-04-12 21:00:13 +02:00
2017-03-26 21:33:12 +02:00
v5.8.4
------
2017-03-19 15:23:06 +01:00
* Added custom implementation of `strtod()` (issue #453 )
2017-03-25 21:55:13 +01:00
* Added custom implementation of `strtol()` (issue #465 )
* `char` is now treated as an integral type (issue #337 , #370 )
2017-03-19 15:23:06 +01:00
2017-02-11 15:12:03 +01:00
v5.8.3
------
2017-01-31 10:06:40 +01:00
* Fixed an access violation in `DynamicJsonBuffer` when memory allocation fails (issue #433 )
2017-02-11 15:06:17 +01:00
* Added operators `==` and `!=` for two `JsonVariant` s (issue #436 )
2017-02-11 15:09:08 +01:00
* Fixed `JsonVariant::operator[const FlashStringHelper*]` (issue #441 )
2017-01-31 10:06:40 +01:00
2017-01-22 18:08:32 +01:00
v5.8.2
------
2017-01-17 21:48:13 +01:00
* Fixed parsing of comments (issue #421 )
2017-01-22 10:31:05 +01:00
* Fixed ignored `Stream` timeout (issue #422 )
* Made sure we don't read more that necessary (issue #422 )
2017-01-22 11:10:45 +01:00
* Fixed error when the key of a `JsonObject` is a `char[]` (issue #423 )
* Reduced code size when using `const` references
2017-01-22 15:42:47 +01:00
* Fixed error with string of type `unsigned char*` (issue #428 )
2017-01-22 17:24:17 +01:00
* Added `deprecated` attribute on `asArray()` , `asObject()` and `asString()` (issue #420 )
2017-01-17 21:48:13 +01:00
2017-01-15 21:02:22 +01:00
v5.8.1
------
2017-01-11 10:17:27 +01:00
* Fixed error when assigning a `volatile int` to a `JsonVariant` (issue #415 )
2017-01-15 15:11:26 +01:00
* Fixed errors with Variable Length Arrays (issue #416 )
2017-01-15 15:18:59 +01:00
* Fixed error when both `ARDUINOJSON_ENABLE_STD_STREAM` and `ARDUINOJSON_ENABLE_ARDUINO_STREAM` are set to `1`
2017-01-15 16:23:20 +01:00
* Fixed error "Stream does not name a type" (issue #412 )
2017-01-11 10:17:27 +01:00
2017-01-03 22:39:44 +01:00
v5.8.0
------
2016-12-23 14:45:32 +01:00
* Added operator `==` to compare `JsonVariant` and strings (issue #402 )
2017-01-03 22:03:50 +01:00
* Added support for `Stream` (issue #300 )
2016-12-29 17:26:16 +01:00
* Reduced memory consumption by not duplicating spaces and comments
2016-12-23 14:45:32 +01:00
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGES :warning:
>
> `JsonBuffer::parseObject()` and `JsonBuffer::parseArray()` have been pulled down to the derived classes `DynamicJsonBuffer` and `StaticJsonBufferBase`.
>
> This means that if you have code like:
>
> ```c++
> void myFunction(JsonBuffer& jsonBuffer);
> ```
>
> you need to replace it with one of the following:
>
> ```c++
> void myFunction(DynamicJsonBuffer& jsonBuffer);
> void myFunction(StaticJsonBufferBase& jsonBuffer);
> template<typename TJsonBuffer> void myFunction(TJsonBuffer& jsonBuffer);
> ```
2017-05-20 09:11:03 +02:00
2016-12-10 16:00:52 +01:00
v5.7.3
------
2016-12-03 22:19:11 +01:00
2016-12-10 15:59:48 +01:00
* Added an `printTo(char[N])` and `prettyPrintTo(char[N])` (issue #292 )
2016-12-10 14:45:58 +01:00
* Added ability to set a nested value like this: `root["A"]["B"] = "C"` (issue #352 )
2016-12-03 22:19:11 +01:00
* Renamed `*.ipp` to `*Impl.hpp` because they were ignored by Arduino IDE (issue #396 )
2016-11-23 21:54:56 +01:00
v5.7.2
------
2016-11-16 22:24:58 +01:00
* Made PROGMEM available on more platforms (issue #381 )
2016-11-23 21:53:29 +01:00
* Fixed PROGMEM causing an exception on ESP8266 (issue #383 )
2016-11-16 22:24:58 +01:00
2016-11-13 20:21:16 +01:00
v5.7.1
------
2016-11-13 20:16:12 +01:00
* Added support for PROGMEM (issue #76 )
2016-11-13 20:19:36 +01:00
* Fixed compilation error when index is not an `int` (issue #381 )
2016-11-13 20:16:12 +01:00
2016-11-06 17:52:57 +01:00
v5.7.0
------
2016-09-21 22:11:38 +02:00
2016-11-06 17:48:32 +01:00
* Templatized all functions using `String` or `std::string`
* Removed `ArduinoJson::String`
* Removed `JsonVariant::defaultValue<T>()`
* Removed non-template `JsonObject::get()` and `JsonArray.get()`
* Fixed support for `StringSumHelper` (issue #184 )
* Replaced `ARDUINOJSON_USE_ARDUINO_STRING` by `ARDUINOJSON_ENABLE_STD_STRING` and `ARDUINOJSON_ENABLE_ARDUINO_STRING` (issue #378 )
* Added example `StringExample.ino` to show where `String` can be used
2016-09-21 22:11:38 +02:00
* Increased default nesting limit to 50 when compiled for a computer (issue #349 )
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGES :warning:
>
> The non-template functions `JsonObject::get()` and `JsonArray.get()` have been removed. This means that you need to explicitely tell the type you expect in return.
>
> Old code:
>
> ```c++
> #define ARDUINOJSON_USE_ARDUINO_STRING 0
> JsonVariant value1 = myObject.get("myKey");
> JsonVariant value2 = myArray.get(0);
> ```
>
> New code:
>
> ```c++
> #define ARDUINOJSON_ENABLE_ARDUINO_STRING 0
> #define ARDUINOJSON_ENABLE_STD_STRING 1
> JsonVariant value1 = myObject.get<JsonVariant>("myKey");
> JsonVariant value2 = myArray.get<JsonVariant>(0);
> ```
2016-11-06 17:48:32 +01:00
2016-09-20 10:11:19 +02:00
v5.6.7
------
2016-09-11 13:43:21 +02:00
* Fixed `array[idx].as<JsonVariant>()` and `object[key].as<JsonVariant>()`
2016-09-16 10:10:31 +02:00
* Fixed return value of `JsonObject::set()` (issue #350 )
2016-09-17 13:51:54 +02:00
* Fixed undefined behavior in `Prettyfier` and `Print` (issue #354 )
2016-09-19 10:08:14 +02:00
* Fixed parser that incorrectly rejected floats containing a `+` (issue #349 )
2016-09-11 13:43:21 +02:00
2016-08-29 20:55:36 +02:00
v5.6.6
------
2016-08-17 20:36:50 +02:00
* Fixed `-Wparentheses` warning introduced in v5.6.5 (PR #335 by @nuket )
2016-08-25 11:40:04 +02:00
* Added `.mbedignore` for ARM mbdeb (PR #334 by @nuket )
2016-08-29 20:54:39 +02:00
* Fixed `JsonVariant::success()` which didn't propagate `JsonArray::success()` nor `JsonObject::success()` (issue #342 ).
2016-08-17 20:36:50 +02:00
2016-08-15 12:25:48 +02:00
v5.6.5
------
2016-08-15 12:24:08 +02:00
* `as<char*>()` now returns `true` when input is `null` (issue #330 )
2016-07-20 13:16:14 +02:00
v5.6.4
------
2016-07-20 13:15:17 +02:00
* Fixed error in float serialization (issue #324 )
2016-07-19 08:59:42 +02:00
v5.6.3
------
2016-07-10 16:12:49 +02:00
* Improved speed of float serialization (about twice faster)
2016-07-17 17:22:58 +02:00
* Added `as<JsonArray>()` as a synonym for `as<JsonArray&>()` ... (issue #291 )
2016-07-19 08:57:19 +02:00
* Fixed `call of overloaded isinf(double&) is ambiguous` (issue #284 )
2016-07-10 16:12:49 +02:00
2016-06-30 20:23:58 +02:00
v5.6.2
------
2016-06-30 20:22:47 +02:00
* Fixed build when another lib does `#undef isnan` (issue #284 )
2016-06-24 09:24:44 +02:00
v5.6.1
------
2016-06-23 21:27:24 +02:00
* Added missing `#pragma once` (issue #310 )
2016-06-22 21:42:55 +02:00
v5.6.0
------
2016-06-22 21:41:19 +02:00
* ArduinoJson is now a header-only library (issue #199 )
2016-06-06 22:12:48 +02:00
v5.5.1
------
2016-06-06 22:10:28 +02:00
* Fixed compilation error with Intel Galileo (issue #299 )
2016-05-22 15:00:09 +02:00
v5.5.0
------
2016-05-18 09:15:49 +02:00
* Added `JsonVariant::success()` (issue #279 )
2016-05-18 09:17:45 +02:00
* Renamed `JsonVariant::invalid<T>()` to `JsonVariant::defaultValue<T>()`
2016-05-18 09:15:49 +02:00
2016-05-06 08:46:13 +02:00
v5.4.0
------
2016-05-06 08:44:31 +02:00
* Changed `::String` to `ArduinoJson::String` (issue #275 )
* Changed `::Print` to `ArduinoJson::Print` too
2016-04-30 09:49:45 +02:00
v5.3.0
------
2016-04-28 08:42:59 +02:00
2016-04-28 18:54:14 +02:00
* Added custom implementation of `ftoa` (issues #266 , #267 , #269 and #270 )
2016-04-30 09:47:53 +02:00
* Added `JsonVariant JsonBuffer::parse()` (issue #265 )
2016-04-28 18:54:14 +02:00
* Fixed `unsigned long` printed as `signed long` (issue #170 )
2016-04-28 08:42:59 +02:00
2016-04-16 16:17:19 +02:00
v5.2.0
------
2016-04-05 20:47:04 +02:00
* Added `JsonVariant::as<char*>()` as a synonym for `JsonVariant::as<const char*>()` (issue #257 )
2016-04-08 20:11:36 +02:00
* Added example `JsonHttpClient` (issue #256 )
2016-04-14 20:06:38 +02:00
* Added `JsonArray::copyTo()` and `JsonArray::copyFrom()` (issue #254 )
2016-04-16 16:15:01 +02:00
* Added `RawJson()` to insert pregenerated JSON portions (issue #259 )
2016-04-05 20:47:04 +02:00
2016-02-23 21:30:01 +01:00
v5.1.1
------
2016-02-23 21:27:52 +01:00
* Removed `String` duplication when one replaces a value in a `JsonObject` (PR #232 by @ulion )
2016-02-14 16:18:13 +01:00
v5.1.0
------
* Added support of `long long` (issue #171 )
* Moved all build settings to `ArduinoJson/Configuration.hpp`
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGE :warning:
>
> If you defined `ARDUINOJSON_ENABLE_STD_STREAM`, you now need to define it to `1`.
2016-02-14 16:18:13 +01:00
2016-01-31 21:57:08 +01:00
v5.0.8
------
2015-12-22 23:43:44 +01:00
2015-12-23 14:42:22 +01:00
* Made the library compatible with [PlatformIO ](http://platformio.org/ ) (issue #181 )
2016-01-31 21:56:04 +01:00
* Fixed `JsonVariant::is<bool>()` that was incorrectly returning false (issue #214 )
2015-12-22 23:43:44 +01:00
2015-11-25 21:15:11 +01:00
v5.0.7
------
2015-11-19 21:53:27 +01:00
2015-11-25 21:15:11 +01:00
* Made library easier to use from a CMake project: simply `add_subdirectory(ArduinoJson/src)`
2015-11-25 21:09:18 +01:00
* Changed `String` to be a `typedef` of `std::string` (issues #142 and #161 )
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGES :warning:
>
> - `JsonVariant(true).as<String>()` now returns `"true"` instead of `"1"`
> - `JsonVariant(false).as<String>()` now returns `"false"` instead of `"0"`
2015-11-19 21:53:27 +01:00
2015-11-09 21:37:40 +01:00
v5.0.6
------
* Added parameter to `DynamicJsonBuffer` constructor to set initial size (issue #152 )
* Fixed warning about library category in Arduino 1.6.6 (issue #147 )
2015-11-09 22:49:49 +01:00
* Examples: Added a loop to wait for serial port to be ready (issue #156 )
2015-11-09 21:37:40 +01:00
2015-10-30 22:29:47 +01:00
v5.0.5
------
2015-11-09 21:37:40 +01:00
* Added overload `JsonObjectSuscript::set(value, decimals)` (issue #143 )
2015-10-30 23:03:16 +01:00
* Use `float` instead of `double` to reduce the size of `JsonVariant` (issue #134 )
2015-10-30 22:29:47 +01:00
2015-09-29 22:02:12 +02:00
v5.0.4
2015-09-28 22:14:50 +02:00
------
* Fixed ambiguous overload with `JsonArraySubscript` and `JsonObjectSubscript` (issue #122 )
2015-09-19 16:20:06 +02:00
v5.0.3
------
2015-09-19 16:23:09 +02:00
* Fixed `printTo(String)` which wrote numbers instead of strings (issue #120 )
2015-09-19 16:25:18 +02:00
* Fixed return type of `JsonArray::is<T>()` and some others (issue #121 )
2015-09-19 16:20:06 +02:00
2015-08-26 20:49:24 +02:00
v5.0.2
------
2016-07-20 13:15:17 +02:00
* Fixed segmentation fault in `parseObject(String)` and `parseArray(String)` , when the
2015-09-01 22:21:50 +02:00
`StaticJsonBuffer` is too small to hold a copy of the string
* Fixed Clang warning "register specifier is deprecated" (issue #102 )
2015-09-01 22:26:51 +02:00
* Fixed GCC warning "declaration shadows a member" (issue #103 )
2015-09-01 22:21:50 +02:00
* Fixed memory alignment, which made ESP8266 crash (issue #104 )
2015-08-27 21:47:49 +02:00
* Fixed compilation on Visual Studio 2010 and 2012 (issue #107 )
2015-08-26 20:49:24 +02:00
2015-08-24 15:20:40 +02:00
v5.0.1
------
* Fixed compilation with Arduino 1.0.6 (issue #99 )
2015-08-20 15:15:59 +02:00
v5.0.0
------
2015-05-23 15:32:50 +02:00
2015-07-25 15:38:12 +02:00
* Added support of `String` class (issues #55 , #56 , #70 , #77 )
* Added `JsonBuffer::strdup()` to make a copy of a string (issues #10 , #57 )
* Implicitly call `strdup()` for `String` but not for `char*` (issues #84 , #87 )
2015-07-10 22:11:26 +02:00
* Added support of non standard JSON input (issue #44 )
2015-07-27 22:16:42 +02:00
* Added support of comments in JSON input (issue #88 )
2015-08-10 17:22:22 +02:00
* Added implicit cast between numerical types (issues #64 , #69 , #93 )
* Added ability to read number values as string (issue #90 )
2015-07-25 15:38:12 +02:00
* Redesigned `JsonVariant` to leverage converting constructors instead of assignment operators (issue #66 )
2015-05-31 14:42:09 +02:00
* Switched to new the library layout (requires Arduino 1.0.6 or above)
2015-05-23 15:32:50 +02:00
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGES :warning:
>
> - `JsonObject::add()` was renamed to `set()`
> - `JsonArray::at()` and `JsonObject::at()` were renamed to `get()`
> - Number of digits of floating point value are now set with `double_with_n_digits()`
2014-07-15 13:50:49 +02:00
2015-05-25 15:38:58 +02:00
**Personal note about the `String` class** :
Support of the `String` class has been added to the library because many people use it in their programs.
However, you should not see this as an invitation to use the `String` class.
The `String` class is **bad** because it uses dynamic memory allocation.
2015-05-31 14:42:09 +02:00
Compared to static allocation, it compiles to a bigger, slower program, and is less predictable.
2015-05-25 15:38:58 +02:00
You certainly don't want that in an embedded environment!
2015-08-01 16:31:59 +02:00
v4.6
----
* Fixed segmentation fault in `DynamicJsonBuffer` when memory allocation fails (issue #92 )
2015-07-10 22:11:26 +02:00
v4.5
----
* Fixed buffer overflow when input contains a backslash followed by a terminator (issue #81 )
**Upgrading is recommended** since previous versions contain a potential security risk.
Special thanks to [Giancarlo Canales Barreto ](https://github.com/gcanalesb ) for finding this nasty bug.
2015-05-09 16:53:48 +02:00
v4.4
----
* Added `JsonArray::measureLength()` and `JsonObject::measureLength()` (issue #75 )
2015-05-03 15:49:44 +02:00
v4.3
2015-04-18 15:37:15 +02:00
----
2015-05-02 15:16:18 +02:00
* Added `JsonArray::removeAt()` to remove an element of an array (issue #58 )
2015-04-18 15:37:15 +02:00
* Fixed stack-overflow in `DynamicJsonBuffer` when parsing huge JSON files (issue #65 )
2015-04-27 16:01:05 +02:00
* Fixed wrong return value of `parseArray()` and `parseObject()` when allocation fails (issue #68 )
2015-04-18 15:37:15 +02:00
2015-02-07 20:49:05 +01:00
v4.2
2015-02-01 20:59:31 +01:00
----
2015-02-07 20:49:05 +01:00
* Switched back to old library layout (issues #39 , #43 and #45 )
2015-02-01 20:59:31 +01:00
* Removed global new operator overload (issue #40 , #45 and #46 )
* Added an example with EthernetServer
2014-12-20 15:45:09 +01:00
v4.1
----
2014-12-21 15:25:42 +01:00
* Added DynamicJsonBuffer (issue #19 )
2014-12-20 15:45:09 +01:00
2014-11-11 14:11:49 +01:00
v4.0
----
* Unified parser and generator API (issue #23 )
2014-11-11 18:34:04 +01:00
* Updated library layout, now requires Arduino 1.0.6 or newer
2014-11-11 14:11:49 +01:00
2017-11-29 09:49:40 +01:00
> ### BREAKING CHANGES :warning:
>
2017-12-11 17:26:50 +01:00
> API changed significantly since v3, see [Migrating code to the new API](https://arduinojson.org/doc/migration/).
2014-11-11 14:11:49 +01:00