Commit Graph

324 Commits

Author SHA1 Message Date
Benoit Blanchon
21998890d4 Set version to 6.9.0 2019-02-26 08:43:45 +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
e22e62d184 Added JsonDocument::size() 2019-02-25 11:07:01 +01:00
Benoit Blanchon
4181de119c Detect IncompleteInput in false, true, and null 2019-02-18 16:18:11 +01:00
Benoit Blanchon
56bf24e1ec Fixed JsonVariant::isNull() not returning true after set((char*)0) 2019-02-18 16:04:51 +01:00
Benoit Blanchon
e9b4c6289b Disambiguated the name get() with getElement() and getMember() 2019-02-15 15:53:53 +01:00
Benoit Blanchon
7ed92bebd3 Converted JsonArray::copyFrom()/copyTo() to free functions copyArray() 2019-02-15 15:33:04 +01:00
Benoit Blanchon
7050ef675d Decode escaped Unicode characters like \u00DE (issue #304, PR #791) 2019-02-15 13:29:30 +01:00
Benoit Blanchon
169c83431c Set version to 6.8.0-beta 2019-01-30 16:39:38 +01:00
Benoit Blanchon
b184af6d00 User can now use a JsonString as a key or a value 2019-01-29 17:00:11 +01:00
Benoit Blanchon
6f55d1e58f JsonVariant automatically promotes to JsonObject or JsonArray on write 2019-01-29 14:09:09 +01:00
Benoit Blanchon
70739f5cfd Reduced the size of the pretty JSON serializer 2019-01-23 18:19:24 +01:00
Benoit Blanchon
933a66a070 Added JsonDocument::operator[] 2019-01-23 11:43:29 +01:00
Benoit Blanchon
4167b11434 Create or assign a JsonDocument from a JsonArray/JsonObject/JsonVariant 2019-01-23 10:47:20 +01:00
Benoit Blanchon
2a3b51ac3a Fixed uninitialized variant in JsonDocument 2019-01-20 14:35:22 +01:00
Benoit Blanchon
e633292df1 Replaced JsonDocument::nestingLimit with a param to deserializeJson() 2019-01-19 14:45:16 +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
8b04046321 Import JsonDocument into the ArduinoJson namespace 2019-01-15 12:04:48 +01:00
Benoit Blanchon
11bb5e26ff Fixed copying from JsonObjectConst and JsonArrayConst 2019-01-14 11:17:57 +01:00
Benoit Blanchon
9ac2ac303c Removed default capacity of DynamicJsonDocument 2019-01-14 10:32:19 +01:00
Benoit Blanchon
3d8ece8c8b Improved syntax highlighting in Arduino IDE 2018-12-14 17:35:40 +01:00
Benoit Blanchon
b0fb71f7d8 Import functions in the ArduinoJson namespace to get clearer errors 2018-12-14 17:34:49 +01:00
Benoit Blanchon
a5cd1b1693 Set version to 6.7.0-beta 2018-12-07 12:23:02 +01:00
Benoit Blanchon
d8a1eec530 Renamed JsonKey to JsonString 2018-12-07 12:08:30 +01:00
Benoit Blanchon
b77b203935 Extracted VariantData and CollectionData classes 2018-12-07 09:16:58 +01:00
Benoit Blanchon
1ad97ebf85 Merge branch 'master' into 6.x 2018-12-04 16:52:15 +01:00
Benoit Blanchon
ef12c74771 Set version to 5.13.4 2018-12-04 11:36:16 +01:00
Benoit Blanchon
0bc03e8071 Removed spurious files in the Particle library 2018-12-04 11:19:22 +01:00
Benoit Blanchon
04e8acd844 Store offset between slots to reduce memory usage 2018-11-30 14:28:00 +01:00
Benoit Blanchon
45f4e5ac20 Restored the monotonic allocator 2018-11-30 14:27:33 +01:00
Benoit Blanchon
2bd280df80 Removed the automatic expansion of DynamicJsonDocument 2018-11-16 10:26:59 +01:00
Benoit Blanchon
b8d0041851 Set version to 6.6.0-beta 2018-11-13 18:05:59 +01:00
Benoit Blanchon
0a97d4c825 Added DeserializationError::code() to be used in switch statements (closes #846) 2018-11-13 14:31:53 +01:00
Benoit Blanchon
720e6548c7 Replacing a value now releases the memory 2018-11-12 18:28:34 +01:00
Benoit Blanchon
f375459d53 JsonArray::remove() and JsonObject::remove() now release the memory of strings 2018-11-09 18:20:57 +01:00
Benoit Blanchon
d8d939660b JsonArray::remove() and JsonObject::remove() now release the memory of the variant 2018-10-19 19:40:21 +02:00
Benoit Blanchon
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
Benoit Blanchon
9f1421e0a6 Set version to 6.5.0-beta 2018-10-13 13:23:34 +02:00
Benoit Blanchon
84f199f0dd Added copy-constructor and copy-assignment-operator for JsonDocument (issue #827) 2018-10-13 13:21:30 +02:00
Benoit Blanchon
b0560cbd99 Added JsonArrayConst, JsonObjectConst, and JsonVariantConst 2018-10-12 12:00:27 +02:00
Benoit Blanchon
b11ad4077b Merge branch 'master' into 6.x 2018-10-09 15:00:49 +02:00
Benoit Blanchon
5dc7dc1216 Increased the default capacity of DynamicJsonDocument 2018-10-08 18:32:58 +02:00
Benoit Blanchon
0d4a93018b Set version to 5.13.3 2018-10-06 17:50:41 +02:00
Benoit Blanchon
0b3af166ae Fixed JsonVariant::is<String>() (closes #763) 2018-10-06 17:21:16 +02:00
Benoit Blanchon
6b985b2d1f Fixed object keys not being duplicated 2018-10-04 11:16:23 +02:00
Benoit Blanchon
527dc19794 Allow mixed configuration in compilation units (issue #809) 2018-10-02 16:54:05 +02:00
Benoit Blanchon
29e71cbb16 Added implicit conversion from JsonArray and JsonObject to JsonVariant 2018-10-01 12:55:40 +02:00
Benoit Blanchon
2d54019f83 Set version to 6.4.0-beta 2018-09-11 16:31:04 +02:00