Benoit Blanchon
6ec5ba521b
Added JsonVariant::containsKey()
2019-03-22 21:58:12 +01:00
Benoit Blanchon
576543c4b4
Added overflow handling in JsonVariant::as<T>() and JsonVariant::is<T>()
2019-03-06 15:31:37 +01:00
Benoit Blanchon
c9d6bd76c9
Added JsonDocument::remove() and JsonVariant::remove()
2019-02-25 13:21:10 +01:00
Benoit Blanchon
bc2ce178ea
Added JsonVariant::clear()
2019-02-25 11:44:22 +01:00
Benoit Blanchon
e9b4c6289b
Disambiguated the name get() with getElement() and getMember()
2019-02-15 15:53:53 +01:00
Benoit Blanchon
c3f71c1a99
Updated copyright year to 2019
2019-02-15 13:32:04 +01:00
Benoit Blanchon
6f55d1e58f
JsonVariant automatically promotes to JsonObject or JsonArray on write
2019-01-29 14:09:09 +01:00
Benoit Blanchon
30b94493bb
Added nesting() to JsonArray, JsonDocument, JsonObject, and JsonVariant
2019-01-17 09:55:51 +01:00
Benoit Blanchon
c51cc91f92
Added memoryUsage() to JsonArray, JsonObject, and JsonVariant
2019-01-16 09:50:57 +01:00
Benoit Blanchon
45f4e5ac20
Restored the monotonic allocator
2018-11-30 14:27:33 +01:00
Benoit Blanchon
720e6548c7
Replacing a value now releases the memory
2018-11-12 18:28:34 +01:00
Benoit Blanchon
29e71cbb16
Added implicit conversion from JsonArray and JsonObject to JsonVariant
2018-10-01 12:55:40 +02:00
Benoit Blanchon
b106b1ed14
Copy JsonArray and JsonObject, instead of storing pointers ( fixes #780 )
2018-09-11 16:06:08 +02:00
Benoit Blanchon
9cbc891816
Implemented reference semantics for JsonVariant
2018-08-21 17:56:16 +02:00
Benoit Blanchon
b105e6f7c4
Return JsonArray and JsonObject by value ( closes #309 )
2018-07-02 09:35:21 +02: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
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
df541a2a22
Changed unit testing framework from Google Test to Catch
2017-04-18 18:22:24 +02:00
Benoit Blanchon
71edcaf20f
Split unit test into several executables
2017-04-10 15:36:59 +02:00