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
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
a60b35f41c
Extracted class JsonSerializer
2016-09-11 13:43:21 +02:00
Benoit Blanchon
c64340a9bb
Fixed error in float serialization (issue #324 )
2016-07-20 13:15:17 +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
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
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
b6d8e6c989
Updated copyright year from 2015 to 2016
2016-01-07 22:39:57 +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
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
39c506b419
Reduced generator size. Fixed Visual Studio warnings
2015-08-19 16:08:19 +02:00
Benoit Blanchon
ef2641b49b
Store parsed token as string and allow conversion between various types (issues #64 , #69 , #90 , #93 )
2015-08-10 17:22:22 +02:00
Benoit Blanchon
601b51890f
Fixed segmentation fault in when memory allocation fails (issue #92 )
2015-08-01 16:57:29 +02:00
Benoit Blanchon
2524a00a96
Fixed segmentation fault in DynamicJsonBuffer when memory allocation fails (issue #92 )
2015-08-01 16:31:59 +02:00
Benoit Blanchon
e31d667bec
Added support of comments in JSON input (issue #88 )
2015-07-27 22:18:54 +02:00
Benoit Blanchon
c161f698fc
Implicitly duplicate String in the JsonBuffer (issue #84 , #87 )
2015-07-25 15:38:12 +02:00
Benoit Blanchon
92e687303d
Added support of non standard JSON input (issue #44 )
2015-07-10 22:11:26 +02:00
Benoit Blanchon
0aded2a798
Reduced code size
2015-05-31 14:25:01 +02:00
Benoit Blanchon
1b5be892b9
Added support of String class (issue #55 , #56 , #70 , #77 )
2015-05-25 15:38:58 +02:00
Benoit Blanchon
756c279cdc
Redesigned JsonVariant to leverage converting constructors instead of assignment operators
2015-05-23 15:32:50 +02:00
Benoit Blanchon
08d05df00e
Added JsonPrintable::measureLength() (issue #75 )
2015-05-09 16:53:48 +02:00
Benoit Blanchon
5e5f060fc0
Updated copyright for 2015
2015-02-07 16:05:48 +01:00
Benoit Blanchon
80913b8044
Fixed Visual Studio's warnings
2015-02-07 15:05:46 +01:00
Benoit Blanchon
8db338ba14
Removed global new operator overload (issue #40 , #45 and #46 )
2015-02-01 20:59:31 +01:00
Benoit Blanchon
562080f22d
Added conversion from ListIterator to ListConstIterator
2014-12-05 22:28:16 +01:00
Benoit Blanchon
f3a84857d9
Removed unused function
2014-11-22 18:54:40 +01:00
Benoit Blanchon
3b77dbbed7
Fixed warnings in Visual Studio
2014-11-11 18:18:26 +01:00
Benoit Blanchon
0911d8d796
Fixed cpplint warnings
2014-11-11 16:41:45 +01:00
Benoit Blanchon
3cfd36a5ce
Reduced size by 16 bytes by inlining indent() and unindent()
2014-11-09 16:10:30 +01:00
Benoit Blanchon
3919f07890
Reduced size by 22 bytes by removing writeEmptyArray() and writeEmptyObject()
2014-11-09 13:54:03 +01:00
Benoit Blanchon
05db56760f
Reduced size by 38 bytes by inlining addNode()
2014-11-08 21:22:03 +01:00
Benoit Blanchon
e94089ca56
Reduced size by 52 bytes by inlining createNode()
2014-11-08 21:16:47 +01:00
Benoit Blanchon
dc1d0ca698
Added #include <ListNode.hpp>
2014-11-08 21:16:14 +01:00
Benoit Blanchon
627d85ce23
Added #pragma once
2014-11-08 21:15:34 +01:00
Benoit Blanchon
f6133f2d36
Reduced size by 300 bytes by reusing the JsonPrettyPrint from v3
2014-11-08 19:40:07 +01:00
Benoit Blanchon
5a56ec0636
Renamed writeInteger to writeLong to be more consistent
2014-11-07 13:27:42 +01:00