Benoit Blanchon
b27990f780
Attach copy policy to string adapters
2022-10-26 10:37:18 +02:00
Benoit Blanchon
8002722f3b
Clang-format: set DerivePointerAlignment to false
2022-08-09 16:52:17 +02:00
Benoit Blanchon
750cd0be92
Add collectionToVariant()
2022-07-07 14:32:43 +02:00
Benoit Blanchon
cd8373ad32
Change link() to shallowCopy() (issue #1343 )
...
Instead of storing a pointer, the function copies the `VariantData`.
Benefits:
* smaller code
* no impact on programs that don't use this feature
Drawbacks:
* changes to the original variant are not always reflected on the copy
* modifying the original from the shallow copy leads to UB
2022-07-05 17:07:43 +02:00
Benoit Blanchon
3760a643cb
Implement comparison out of VariantData
2022-04-27 15:07:25 +02:00
Benoit Blanchon
fc9d8aa31e
Implement nesting() out of VariantData
2022-04-07 21:11:31 +02:00
Benoit Blanchon
a880614a75
Fix call of overloaded 'String(const char*, int)' is ambiguous
2022-02-17 17:33:16 +01:00
Benoit Blanchon
af18994deb
Update copyright notice
2022-01-01 10:01:05 +01:00
Benoit Blanchon
ca24ed48f5
Separate string adapter from storage policy
2021-12-07 16:08:44 +01:00
Benoit Blanchon
6632fa8da1
Removed StringAdapter::equals()
2021-07-27 14:16:39 +02:00
Benoit Blanchon
5790f3c8f7
Refactored string adapters: only one IsString<T> and adaptString()
2021-07-27 14:16:18 +02:00
Benoit Blanchon
898f429826
Fixed member-call-on-null-pointer in getMember() when array is empty
2021-04-15 14:56:59 +02:00
Benoit Blanchon
d5d2209d09
Added "https://" prefix to all URLs so they are clickable in VS Code
2021-03-29 19:35:25 +02:00
Benoit Blanchon
97b7161d78
Update copyright notice for 2021
2021-01-25 09:14:15 +01:00
Benoit Blanchon
7e58347fbe
Added comparisons between JsonVariants
2020-07-02 15:28:34 +02:00
Benoit Blanchon
a471aed6db
Improved coverage of JsonObject
2020-02-22 14:17:10 +01:00
Benoit Blanchon
d8724e0a0b
Changed the array subscript to automatically add missing elements
2020-02-20 08:59:25 +01:00
Benoit Blanchon
0814fc185f
Added a line-break after each "if" to get more accurate coverage report
2020-02-16 15:05:23 +01:00
Benoit Blanchon
f9cfea244a
Updated copyright notice
2020-01-09 15:48:38 +01:00
Benoit Blanchon
062c1c13b5
Added BasicJsonDocument::shrinkToFit()
2019-11-07 15:40:20 +01:00
Benoit Blanchon
2078871f36
Added missing #include <ArduinoJson/Namespace.hpp>
2019-09-13 12:09:07 +02:00
Benoit Blanchon
fcbec6eb6d
Use absolute instead of relative includes ( fixes #1072 )
2019-08-26 11:57:57 +02:00
Benoit Blanchon
746f2882f7
Removed member call on null
2019-03-05 14:48:33 +01:00
Benoit Blanchon
c3f71c1a99
Updated copyright year to 2019
2019-02-15 13:32:04 +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
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
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