30b94493bb
Added nesting() to JsonArray, JsonDocument, JsonObject, and JsonVariant
2019-01-17 09:55:51 +01:00
c51cc91f92
Added memoryUsage() to JsonArray, JsonObject, and JsonVariant
2019-01-16 09:50:57 +01:00
9ac2ac303c
Removed default capacity of DynamicJsonDocument
2019-01-14 10:32:19 +01:00
b77b203935
Extracted VariantData and CollectionData classes
2018-12-07 09:16:58 +01:00
04e8acd844
Store offset between slots to reduce memory usage
2018-11-30 14:28:00 +01:00
f375459d53
JsonArray::remove() and JsonObject::remove() now release the memory of strings
2018-11-09 18:20:57 +01: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
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
527dc19794
Allow mixed configuration in compilation units (issue #809 )
2018-10-02 16:54:05 +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
9cbc891816
Implemented reference semantics for JsonVariant
2018-08-21 17:56:16 +02:00
87fa87d87b
Renamed function RawJson()
to serialized()
2018-07-12 09:08:20 +02:00
b105e6f7c4
Return JsonArray
and JsonObject
by value ( closes #309 )
2018-07-02 09:35:21 +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
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
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
bae179ed67
RawJson()
accepts any kind of string and obeys to duplication rules
2018-01-18 09:43:37 +01:00
e92612b511
Changed the rules of string duplication ( fixes #658 )
2018-01-14 13:46:28 +01:00
5c33fd4b94
Set copyright year to 2018
2018-01-05 09:20:01 +01:00
221c2861fc
Changed all links to point to arduinojson.org
2017-11-07 20:42:50 +01:00
cda05aec04
Removed configurable number of decimal places (issues #288 , #427 and #506 )
2017-05-20 09:06:53 +02:00
df541a2a22
Changed unit testing framework from Google Test to Catch
2017-04-18 18:22:24 +02:00
f2ef338cb8
Renamed JsonArray::removeAt()
into remove()
2017-04-12 21:07:30 +02:00
8c6f64c111
Added JsonArray::remove(iterator)
and JsonObject::remove(iterator)
(issue #479 )
2017-04-12 21:00:13 +02:00
71edcaf20f
Split unit test into several executables
2017-04-10 15:36:59 +02:00
ac89d91db5
Organized test files in subfolders
2017-04-10 14:32:45 +02:00