a60162ba76
Removed the indirection via StringSlot
2018-11-30 14:27:35 +01:00
45f4e5ac20
Restored the monotonic allocator
2018-11-30 14:27:33 +01:00
2bd280df80
Removed the automatic expansion of DynamicJsonDocument
2018-11-16 10:26:59 +01:00
0a97d4c825
Added DeserializationError::code()
to be used in switch statements ( closes #846 )
2018-11-13 14:31:53 +01:00
5eee947ffe
Increased test coverage of MessagePack serialization
2018-11-12 21:36:39 +01:00
720e6548c7
Replacing a value now releases the memory
2018-11-12 18:28:34 +01:00
f375459d53
JsonArray::remove() and JsonObject::remove() now release the memory of strings
2018-11-09 18:20:57 +01:00
d8d939660b
JsonArray::remove() and JsonObject::remove() now release the memory of the variant
2018-10-19 19:40:21 +02:00
ae089dcff7
Merged the two StringBuilder classes into one
2018-10-18 17:54:33 +02:00
1a4515c0b9
Removed JsonArray::is<T>(i)
and JsonArray::set(i,v)
...
Removed `JsonObject::is<T>(k)` and `JsonObject::set(k,v)`
Replaced `T JsonArray::get<T>(i)` with `JsonVariant JsonArray::get(i)`
Replaced `T JsonObject::get<T>(k)` with `JsonVariant JsonObject::get(k)`
2018-10-18 14:51:02 +02:00
84f199f0dd
Added copy-constructor and copy-assignment-operator for JsonDocument
(issue #827 )
2018-10-13 13:21:30 +02:00
02d809f3f4
Added Visitable to reduce the number of definitions of operator<<
2018-10-12 17:59:50 +02:00
b0560cbd99
Added JsonArrayConst
, JsonObjectConst
, and JsonVariantConst
2018-10-12 12:00:27 +02:00
b11ad4077b
Merge branch 'master' into 6.x
2018-10-09 15:00:49 +02:00
0b3af166ae
Fixed JsonVariant::is<String>()
( closes #763 )
2018-10-06 17:21:16 +02:00
6b985b2d1f
Fixed object keys not being duplicated
2018-10-04 11:16:23 +02:00
527dc19794
Allow mixed configuration in compilation units (issue #809 )
2018-10-02 16:54:05 +02:00
29e71cbb16
Added implicit conversion from JsonArray
and JsonObject
to JsonVariant
2018-10-01 12:55:40 +02:00
98c8e8e35a
Added a test for issue #808
2018-09-11 16:21:30 +02:00
b106b1ed14
Copy JsonArray and JsonObject, instead of storing pointers ( fixes #780 )
2018-09-11 16:06:08 +02:00
2998a55f0b
Renamed JsonBuffer to MemoryPool
2018-09-03 16:14:21 +02:00
6d290bd001
Fixed duplication of char*
2018-08-22 14:37:17 +02:00
7683667b3c
Fixed serializeJson(obj[key], dst)
( closes #794 )
2018-08-21 18:07:41 +02:00
9cbc891816
Implemented reference semantics for JsonVariant
2018-08-21 17:56:16 +02:00
2059d610a8
Fixed invalid application of 'sizeof' to incomplete type ( closes #783 )
2018-07-18 20:19:22 +02:00
6bb17d5896
Checked that issue issue #628 is fixed
2018-07-12 10:33:56 +02:00
87fa87d87b
Renamed function RawJson()
to serialized()
2018-07-12 09:08:20 +02:00
fa1a40ac6e
Fixed JsonVariant::is<int>()
that returned true for empty strings
2018-07-05 09:53:11 +02:00
037f90aada
Disabled lazy number deserialization ( fixes #772 )
2018-07-04 12:02:58 +02:00
b105e6f7c4
Return JsonArray
and JsonObject
by value ( closes #309 )
2018-07-02 09:35:21 +02:00
e86eb0cfdf
Set version to 6.0.0-beta
2018-06-07 10:50:10 +02:00
0139354780
Merge branch 'master' into 6.x
2018-06-04 17:46:34 +02:00
eb20ae6a3f
Added macros ARDUINOJSON_VERSION
, ARDUINOJSON_VERSION_MAJOR
...
2018-06-01 09:19:34 +02:00
7c0af91844
Fixed null values that could be pass to strcmp()
( closes #745 )
2018-06-01 09:08:38 +02:00
fc2e3a4ab3
Added serializeMsgPack()
and measureMsgPack()
( closes #358 )
2018-05-29 08:31:39 +02:00
58cb793c96
Reorganized polyfills
2018-05-17 13:46:23 +02:00
4592f23260
Merged MsgPackError and JsonError into DeserializationError.
...
Return NotSupported if the JSON input contains "\u".
2018-05-15 18:23:09 +02:00
ccb54136a2
Added support for non zero-terminated strings ( fixes #704 )
2018-05-14 17:12:59 +02:00
4c9c047ddf
Made nestingLimit a member of the document
2018-04-18 21:42:30 +02:00
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
cb723840d9
Added deserializeMsgPack()
(issue #358 )
2018-04-10 17:43:27 +02:00
0d1623edef
Clear the JsonObject or JsonArray in deserializeJson()
2018-03-18 14:50:52 +01:00
ef55a6ba7c
Removed all deprecated features
2018-03-15 16:50:39 +01:00
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
3523296e3d
Fixed JsonBuffer::parse()
nesting limit ( fixes #693 )
2018-03-12 18:29:33 +01:00
b2a8085651
Added JsonError
2018-03-09 16:58:01 +01:00
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
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
d9b1e7e810
Allowed non-quoted key to contain underscores ( fixes #665 )
2018-02-16 11:04:07 +01:00
b4eece01f8
Fixed JsonVariant::operator|(int)
to accept double ( fixes #675 )
2018-02-09 09:05:29 +01:00