Benoit Blanchon
cecbcd1929
Added operator == to compare JsonVariant and strings (issue #402 )
2016-12-23 14:45:32 +01:00
Benoit Blanchon
432476c98a
Added an printTo(char[N]) and prettyPrintTo(char[N]) (issue #292 )
2016-12-10 15:59:48 +01:00
Benoit Blanchon
1f3e227a8b
Added ability to set a nested value like this: root["A"]["B"] = "C" (issue #352 )
2016-12-10 15:22:57 +01:00
Benoit Blanchon
66c28020c5
Renamed *.ipp to *Impl.hpp because they were ignored by Arduino IDE (issue #396 )
2016-12-03 22:19:11 +01:00
Benoit Blanchon
2f7232859e
Fixed PROGMEM causing an exception on ESP8266 (issue #383 )
2016-11-23 21:53:29 +01:00
Benoit Blanchon
72d78432c9
Made PROGMEM available on more platforms (issue #381 )
2016-11-16 22:24:58 +01:00
Benoit Blanchon
f28157cab7
Fixed compilation error when index is not an int (issue #381 )
2016-11-13 20:19:36 +01:00
Benoit Blanchon
1ce16ce449
Added support for PROGMEM (issue #76 )
2016-11-13 20:16:12 +01:00
Benoit Blanchon
aa2ef79e55
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-11-06 17:52:18 +01:00
Benoit Blanchon
e6f55b1f6f
Increased default nesting limit to 50 when compiled for a computer (issue #349 )
2016-09-21 22:11:38 +02:00
Benoit Blanchon
deb57b960b
Fixed parser that incorrectly rejected floats containing a + (issue #349 )
2016-09-19 10:08:14 +02:00
Benoit Blanchon
8a9b918bf4
Fixed undefined behavior in Prettyfier and Print (issue #354 )
2016-09-17 13:51:54 +02:00
Benoit Blanchon
2f6f3d0629
Fixed return value of JsonObject::set() (issue #350 )
2016-09-16 10:10:31 +02:00
Benoit Blanchon
a60b35f41c
Extracted class JsonSerializer
2016-09-11 13:43:21 +02:00
Benoit Blanchon
ffb9b6d1ba
Fixed JsonVariant::success() which didn't propagate JsonArray::success() nor JsonObject::success() (issue #342 ).
2016-08-29 20:54:39 +02:00
Max Vilimpoc (unu)
409ca7ee4e
Fixed -Wparentheses warning introduced in v5.6.5 (PR #335 by @nuket)
2016-08-17 20:37:44 +02:00
Benoit Blanchon
96f486001d
as<char*>() now returns true when input is null (issue #330 )
2016-08-15 12:24:08 +02:00
Benoit Blanchon
c64340a9bb
Fixed error in float serialization (issue #324 )
2016-07-20 13:15:17 +02:00
Benoit Blanchon
7ebff5949f
Fixed call of overloaded isinf(double&) is ambiguous (issue #284 )
2016-07-19 08:57:19 +02:00
Benoit Blanchon
c87a0e97ab
Added as<JsonArray>() as a synonym for as<JsonArray&>()... (issue #291 )
2016-07-17 17:22:58 +02:00
Benoit Blanchon
2dbd94951c
Improved speed of float serialization (about twice faster)
2016-07-10 16:12:49 +02:00
Benoit Blanchon
729ab56878
Fixed build when another lib does #undef isnan (issue #284 )
2016-06-30 20:22:47 +02:00
Benoit Blanchon
10fcca20f8
Added missing #pragma once (issue #310 )
2016-06-23 21:27:24 +02:00
Benoit Blanchon
8c7edbd9c3
ArduinoJson is now a header-only library (issue #199 )
2016-06-22 21:41:19 +02:00
Benoit Blanchon
c7d6d33e6c
Fixed compilation error with Intel Galileo (issue #299 )
2016-06-06 22:10:28 +02:00
Benoit Blanchon
9b3e3a3d9c
Renamed JsonVariant::invalid<T>() to JsonVariant::defaultValue<T>()
2016-05-18 09:17:45 +02:00
Benoit Blanchon
a3a2ca4796
Added JsonVariant::success() (issue #279 )
2016-05-18 09:15:49 +02:00
Benoit Blanchon
c5d19a4dbd
Changed ::String to ArduinoJson::String (issue #275 )
2016-05-06 08:44:31 +02:00
Benoit Blanchon
a8032f81d9
Added JsonVariant JsonBuffer::parse() (issue #265 )
2016-04-30 09:47:53 +02:00
Benoit Blanchon
a138791964
Added custom implementation of ftoa (issues #266 , #267 , #269 and #270 )
2016-04-28 18:54:14 +02:00
Benoit Blanchon
f9f002c8f7
Fix unsigned long printed as signed long (issue #170 )
2016-04-28 08:42:59 +02:00
Benoit Blanchon
a6724bd03f
Added RawJson() to insert pregenerated JSON portions (issue #259 )
2016-04-16 16:15:01 +02:00
Benoit Blanchon
c77c3f33ef
Added JsonArray::copyTo() and JsonArray::copyFrom() (issue #254 )
2016-04-14 20:06:38 +02:00
Benoit Blanchon
a241d53d28
Added JsonVariant::as<char*>() as a synonym for JsonVariant::as<const char*>() (issue #257 )
2016-04-05 20:47:04 +02:00
ulion
b47a3b566a
Removed duplication when one replaces a value in a (PR #232 by @ulion)
2016-02-23 21:27:52 +01:00
Benoit Blanchon
8733f95e51
Added support of long long (issue #171 )
...
Moved all build settings to `ArduinoJson/Configuration.hpp`
Added AppVeyor settings in source tree
2016-02-14 16:18:13 +01:00
Benoit Blanchon
6a608d4b49
Fixed JsonVariant::is<bool>() that was incorrectly returning false (issue #214 )
2016-01-31 21:56:04 +01:00
Benoit Blanchon
b6d8e6c989
Updated copyright year from 2015 to 2016
2016-01-07 22:39:57 +01:00
Benoit Blanchon
056682327b
Changed String to be a typedef of std::string (issues #142 and #161 )
2015-11-25 21:09:18 +01:00
Benoit Blanchon
8b66a25f66
Removed a useless line of code
2015-11-22 10:18:21 +01:00
Benoit Blanchon
ba3617c22f
Added parameter to DynamicJsonBuffer constructor to set initial size (issue #152 )
2015-11-09 21:37:40 +01:00
Benoit Blanchon
c0cf9c3fcc
Use float instead of double to reduce the size of JsonVariant (issue #134 )
2015-10-30 23:03:16 +01:00
Benoit Blanchon
9f3ce18f06
Add overload JsonObjectSuscript::set(value, decimals) (issue #143 )
2015-10-30 22:29:47 +01:00
Benoit Blanchon
c6a4bfa886
Fixed ambiguous overload with JsonArraySubscript and JsonObjectSubscript (issue #122 )
2015-09-28 22:14:50 +02:00
Benoit Blanchon
7cf6fe6d62
Fixed return type of JsonArray::is<T>() and some others (issue #121 )
2015-09-19 16:25:18 +02:00
Benoit Blanchon
155dd653e7
Fixed printTo(String) which wrote numbers instead of strings (issue #120 )
2015-09-19 16:23:09 +02:00
Benoit Blanchon
04b8781c8d
Fixed GCC warning "declaration shadows a member" (issue #103 )
2015-09-01 22:26:51 +02:00
Benoit Blanchon
5a4d993f7d
Fixed memory alignment, which made ESP8266 crash (issue #104 )
2015-09-01 22:21:50 +02:00
Benoit Blanchon
823a172681
Fixed segmentation fault in StaticJsonBuffer (issue #104 )
2015-08-29 22:51:17 +02:00
Benoit Blanchon
a003a31952
Fixed compilation with Arduino 1.0.6 (issue #99 )
2015-08-24 15:20:40 +02:00