bc2ce178ea
Added JsonVariant::clear()
2019-02-25 11:44:22 +01:00
56bf24e1ec
Fixed JsonVariant::isNull()
not returning true
after set((char*)0)
2019-02-18 16:04:51 +01:00
e9b4c6289b
Disambiguated the name get()
with getElement()
and getMember()
2019-02-15 15:53:53 +01:00
c3f71c1a99
Updated copyright year to 2019
2019-02-15 13:32:04 +01:00
070cd5b6c0
Added more tests of JsonVariant::is<T>()
2019-02-01 11:28:27 +01:00
b184af6d00
User can now use a JsonString as a key or a value
2019-01-29 17:00:11 +01:00
6f55d1e58f
JsonVariant automatically promotes to JsonObject or JsonArray on write
2019-01-29 14:09:09 +01:00
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
41b2e629f7
Increased test coverage
2018-11-30 14:27:35 +01:00
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
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
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
b106b1ed14
Copy JsonArray and JsonObject, instead of storing pointers ( fixes #780 )
2018-09-11 16:06:08 +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
2059d610a8
Fixed invalid application of 'sizeof' to incomplete type ( closes #783 )
2018-07-18 20:19:22 +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
0139354780
Merge branch 'master' into 6.x
2018-06-04 17:46:34 +02:00
7c0af91844
Fixed null values that could be pass to strcmp()
( closes #745 )
2018-06-01 09:08:38 +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
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
b4eece01f8
Fixed JsonVariant::operator|(int)
to accept double ( fixes #675 )
2018-02-09 09:05:29 +01:00
5c33fd4b94
Set copyright year to 2018
2018-01-05 09:20:01 +01:00
d3a1203782
Added JsonVariant::operator| to return a default value
2017-11-29 09:49:40 +01:00
221c2861fc
Changed all links to point to arduinojson.org
2017-11-07 20:42:50 +01:00
c955049207
Fixed IntelliSense errors in Visual Micro (issue #483 )
2017-05-28 15:33:03 +02:00
cda05aec04
Removed configurable number of decimal places (issues #288 , #427 and #506 )
2017-05-20 09:06:53 +02:00
9efc0ec40d
Travis: Added GCC 6
2017-05-02 21:32:19 +02:00
df541a2a22
Changed unit testing framework from Google Test to Catch
2017-04-18 18:22:24 +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