Benoit Blanchon
58cb793c96
Reorganized polyfills
2018-05-17 13:46:23 +02:00
Benoit Blanchon
4592f23260
Merged MsgPackError and JsonError into DeserializationError.
...
Return NotSupported if the JSON input contains "\u".
2018-05-15 18:23:09 +02:00
Benoit Blanchon
ccb54136a2
Added support for non zero-terminated strings ( fixes #704 )
2018-05-14 17:12:59 +02:00
Benoit Blanchon
4c9c047ddf
Made nestingLimit a member of the document
2018-04-18 21:42:30 +02:00
Benoit Blanchon
1feb92679d
Added StaticJsonDocument and DynamicJsonDocument.
...
Removed StaticJsonArray and DynamicJsonArray.
Removed StaticJsonObject and DynamicJsonObject.
Removed StaticJsonVariant and DynamicJsonVariant.
2018-04-17 21:27:45 +02:00
Benoit Blanchon
cb723840d9
Added deserializeMsgPack() (issue #358 )
2018-04-10 17:43:27 +02:00
Benoit Blanchon
0d1623edef
Clear the JsonObject or JsonArray in deserializeJson()
2018-03-18 14:50:52 +01:00
Benoit Blanchon
ef55a6ba7c
Removed all deprecated features
2018-03-15 16:50:39 +01:00
Benoit Blanchon
e3e4aa89ad
Merge branch 'master' into 6.x
...
# Conflicts:
# CHANGELOG.md
# src/ArduinoJson/Deserialization/JsonParser.hpp
# src/ArduinoJson/Deserialization/JsonParserImpl.hpp
# test/JsonBuffer/nestingLimit.cpp
2018-03-14 14:46:53 +01:00
Benoit Blanchon
3523296e3d
Fixed JsonBuffer::parse() nesting limit ( fixes #693 )
2018-03-12 18:29:33 +01:00
Benoit Blanchon
b2a8085651
Added JsonError
2018-03-09 16:58:01 +01:00
Benoit Blanchon
83d73c93f7
Replaced printTo() with serializeJson()
...
* Added `serializeJson()` and `serializeJsonPretty()`
* Added `measureJson()` and `measureJsonPretty()`
* Removed `printTo()` and `prettyPrintTo()`
* Removed `measureLength()` and `measurePrettyLength()`
2018-03-01 09:24:58 +01:00
Benoit Blanchon
7a2a64803a
Don't use JsonBuffer to create or parse objects and arrays.
...
* Added DynamicJsonArray and StaticJsonArray
* Added DynamicJsonObject and StaticJsonObject
* Added DynamicJsonVariant and StaticJsonVariant
* Added deserializeJson()
* Removed JsonBuffer::parseArray(), parseObject() and parse()
* Removed JsonBuffer::createArray() and createObject()
2018-02-26 16:05:16 +01:00
Benoit Blanchon
d9b1e7e810
Allowed non-quoted key to contain underscores ( fixes #665 )
2018-02-16 11:04:07 +01:00
Benoit Blanchon
b4eece01f8
Fixed JsonVariant::operator|(int) to accept double ( fixes #675 )
2018-02-09 09:05:29 +01:00
Benoit Blanchon
e390587e91
Kept only two namespaces ArduinoJson and ArduinoJson::Internals
2018-01-19 08:32:15 +01:00
Benoit Blanchon
bae179ed67
RawJson() accepts any kind of string and obeys to duplication rules
2018-01-18 09:43:37 +01:00
Benoit Blanchon
0612eef69b
Marked strdup() as deprecated (issue #658 )
2018-01-14 14:02:10 +01:00
Benoit Blanchon
ae0b7a3ebd
Changed the return type of strdup() to const char* (issue #658 )
2018-01-14 14:01:08 +01:00
Benoit Blanchon
e92612b511
Changed the rules of string duplication ( fixes #658 )
2018-01-14 13:46:28 +01:00
Benoit Blanchon
5c33fd4b94
Set copyright year to 2018
2018-01-05 09:20:01 +01:00
Benoit Blanchon
d3a1203782
Added JsonVariant::operator| to return a default value
2017-11-29 09:49:40 +01:00
Benoit Blanchon
221c2861fc
Changed all links to point to arduinojson.org
2017-11-07 20:42:50 +01:00
Benoit Blanchon
591fe7e92b
Fixed incorrect rounding for float values ( fixes #588 )
2017-10-17 10:19:21 +02:00
Benoit Blanchon
57defe00ee
Fixed DynamicJsonBuffer::clear() not resetting allocation size ( fixes #561 )
2017-08-30 21:51:10 +02:00
Benoit Blanchon
d41f7a8165
Fixed too many decimals places in float serialization (issue #543 )
2017-07-14 10:51:46 +02:00
Benoit Blanchon
abfd3997eb
Fixed "constant exceeds range of float [-Woverflow]" (issue #544 )
2017-07-09 15:24:58 +02:00
Benoit Blanchon
476e5aaa86
Added DynamicJsonBuffer::clear()
2017-06-17 16:48:40 +02:00
Benoit Blanchon
789fa507b5
Added StaticJsonBuffer::clear()
2017-06-17 15:00:46 +02:00
Benoit Blanchon
508f936317
Made JsonBuffer non-copyable (PR #524 by @luisrayas3)
2017-06-17 14:17:01 +02:00
Benoit Blanchon
bff77abe6a
Fixed reading "true" as a float (issue #516 )
2017-06-03 16:22:26 +02:00
Benoit Blanchon
c955049207
Fixed IntelliSense errors in Visual Micro (issue #483 )
2017-05-28 15:33:03 +02:00
Benoit Blanchon
7415f206ea
Reduced code size
2017-05-27 15:08:11 +02:00
Benoit Blanchon
cda05aec04
Removed configurable number of decimal places (issues #288 , #427 and #506 )
2017-05-20 09:06:53 +02:00
Benoit Blanchon
cc66618e70
Fixed error forming reference to reference (issue #495 )
2017-05-04 21:58:28 +02:00
Benoit Blanchon
9efc0ec40d
Travis: Added GCC 6
2017-05-02 21:32:19 +02:00
Benoit Blanchon
9afa05e2f4
Removed Print class and converted printTo() to a template method (issue #276 )
2017-04-22 11:33:40 +02:00
Benoit Blanchon
024976cda2
Renamed folder include/ to src/ (issue #461 )
2017-04-20 10:26:40 +02:00
Benoit Blanchon
df541a2a22
Changed unit testing framework from Google Test to Catch
2017-04-18 18:22:24 +02:00
Benoit Blanchon
f2ef338cb8
Renamed JsonArray::removeAt() into remove()
2017-04-12 21:07:30 +02:00
Benoit Blanchon
8c6f64c111
Added JsonArray::remove(iterator) and JsonObject::remove(iterator) (issue #479 )
2017-04-12 21:00:13 +02:00
Benoit Blanchon
71edcaf20f
Split unit test into several executables
2017-04-10 15:36:59 +02:00
Benoit Blanchon
ac89d91db5
Organized test files in subfolders
2017-04-10 14:32:45 +02:00
Benoit Blanchon
adba668109
Updated project URL
2017-03-25 22:05:06 +01:00
Benoit Blanchon
185eccf6f5
Added custom implementation of strtol() (issue #465 )
...
`char` is now treated as an integral type (issue #337 , #370 )
2017-03-25 21:55:13 +01:00
Benoit Blanchon
c4567bac18
Added custom implementation of strtod() (issue #453 )
2017-03-19 15:23:06 +01:00
Benoit Blanchon
31827d03f9
Added operators == and != for two JsonVariants (issue #436 )
2017-02-11 15:06:17 +01:00
Benoit Blanchon
db9a76f7c6
Fixed an access violation in DynamicJsonBuffer when memory allocation fails (issue #433 )
2017-01-31 10:06:40 +01:00
Benoit Blanchon
5fefeae404
Added deprecated attribute on asArray(), asObject() and asString() (issue #420 )
2017-01-22 17:24:17 +01:00
Benoit Blanchon
d4f725d1fa
Fixed error with string of type unsigned char* (issue #428 )
2017-01-22 15:42:47 +01:00