Benoit Blanchon
8d3d9c718d
Remove final from JsonArray, JsonObject, and JsonVariant
...
`final` breaks ThingsBoard ಠ_ಠ
https://github.com/thingsboard/thingsboard-client-sdk/blob/v0.12.2/src/RPC_Response.h#L10
See #2056 .
This reverts commit 5ed9daae91 .
2024-02-18 20:01:04 +01:00
Benoit Blanchon
5ed9daae91
Mark JsonArray, JsonObject, and JsonVariant as final
...
See #2056
Ported from 483a2c9
2024-02-18 11:25:49 +01:00
Benoit Blanchon
0e7262a77b
Improve error messages when using char or char*
...
See #2043
Ported from 650d537b5d
2024-01-26 18:45:12 +01:00
Benoit Blanchon
40ee05c065
Set version to 6.21.5
2024-01-10 21:27:06 +01:00
Benoit Blanchon
6e641ae0b0
Remove unused files in the PlatformIO package
...
Ported from 3571db6290
2024-01-10 21:23:38 +01:00
Benoit Blanchon
5d1d2721d1
Fix volatile bool serialized as 1 or 0
...
Fixes #2029
2024-01-10 13:30:26 +01:00
Benoit Blanchon
3e1be980d9
Fix function returns incomplete class type on IAR (issue #2001 )
2023-12-07 14:43:53 +01:00
Benoit Blanchon
38441691cd
Set version to 6.21.4
2023-12-07 10:10:23 +01:00
Benoit Blanchon
6ed87029e2
Fix no instance of overloaded function... on IAR ( fixes #2001 )
2023-12-06 17:36:39 +01:00
Benoit Blanchon
49e2a8d421
Fix 'std::string_view' has not been declared (issue #1967 )
2023-09-13 18:13:19 +02:00
Benoit Blanchon
259855a87b
Fix 'std::string' has not been declared (issue #1967 )
2023-09-13 18:13:18 +02:00
Benoit Blanchon
4b00783345
Set version to 6.21.3
2023-07-23 17:49:42 +02:00
Benoit Blanchon
7eec01cdd6
Show a link to the doc when user passes an unsupported input type
2023-07-23 16:39:24 +02:00
Benoit Blanchon
433fb4b961
Include ARDUINOJSON_SLOT_OFFSET_SIZE in the namespace name
2023-07-12 14:54:19 +02:00
Benoit Blanchon
afbcc2106e
Fix double call to size() in serializeMsgPack()
2023-07-12 11:54:20 +02:00
Benoit Blanchon
7b1c012f80
Fix double lookup in to<JsonVariant>()
...
Ported from 23b01a89b1
2023-07-05 21:10:47 +02:00
Benoit Blanchon
52d8a65cbc
Fix compatibility with the Blynk libary ( fixes #1914 )
2023-04-18 15:13:41 +02:00
Benoit Blanchon
420221f078
Set version to 6.21.2
2023-04-12 14:35:25 +02:00
Benoit Blanchon
082ae69e86
Set default for ARDUINOJSON_ENABLE_PROGMEM to 1 on AVR
2023-04-12 11:42:02 +02:00
Benoit Blanchon
40daf56b5a
Allow using PROGMEM outside of Arduino ( fixes #1903 )
2023-04-07 18:19:33 +02:00
Benoit Blanchon
31ce648e63
Change naming convention from _member to member_ ( fixes #1905 )
2023-04-07 09:02:23 +02:00
Benoit Blanchon
cb850bc1b1
Set version to 6.21.1
2023-03-27 14:05:53 +02:00
Benoit Blanchon
9e9015f4b9
Fix compatibility with GCC 5.2 ( fixes #1897 )
2023-03-27 11:00:20 +02:00
Benoit Blanchon
9bb3f4051d
Double speed of DynamicJsonDocument::garbageCollect()
2023-03-20 12:32:52 +01:00
Benoit Blanchon
de9239caab
Set version to 6.21.0
2023-03-14 21:05:56 +01:00
Benoit Blanchon
c89a2025ce
Make string support generic (issue #1807 )
2023-03-13 12:19:05 +01:00
Benoit Blanchon
1b66a217bf
Replace ARDUINOJSON_NAMESPACE with an inline namespace ( #1820 )
2023-02-14 10:04:48 +01:00
Benoit Blanchon
407fc2cd45
Drop support for C++98/C++03 ( closes #1820 )
2023-02-10 17:02:52 +01:00
Benoit Blanchon
b33966c755
Set version to 6.20.1
2023-02-08 16:42:04 +01:00
Benoit Blanchon
b350a96643
Remove explicit exclusion of as<char*>() and as<char>() ( #1860 )
...
If you try to call them, you'll now get the same error message as any unsupported type.
You could also add a custom converter for `char*` and `char`.
2023-01-18 22:10:37 +01:00
Benoit Blanchon
5094b84a46
Set version to 6.20.0
2022-12-26 17:35:54 +01:00
Benoit Blanchon
191fc5dff4
Remove support for naked char (was deprecated since 6.18.0)
2022-12-26 11:02:34 +01:00
Benoit Blanchon
de725e0a4e
Add documentation to most public symbols
2022-12-21 19:20:51 +01:00
Benoit Blanchon
d602232b9f
Update change log
2022-12-19 14:41:53 +01:00
Benoit Blanchon
0f85a55cac
Implement VariantRefBase with a CRTP
2022-12-05 21:00:24 +01:00
Benoit Blanchon
92d6bae25c
Remove ArrayIterator::internal() and ObjectIterator::internal()
2022-10-14 18:11:55 +02:00
Benoit Blanchon
cf4436e581
Extract VariantProxy from ElementProxy and MemberProxy
2022-08-30 10:25:03 +02:00
Benoit Blanchon
62e83133cd
Remove JsonDocument::data() and JsonDocument::memoryPool()
2022-08-09 10:38:36 +02:00
Benoit Blanchon
1d21027e2a
Fix lax parsing of true, false, and null ( fixes #1781 )
2022-08-06 09:15:07 +02:00
Benoit Blanchon
5705247e5f
Fix replacement for getOrAddElement() and getOrAddMember()
2022-08-04 10:47:02 +02:00
Benoit Blanchon
c5838a876b
Remove getElement(), getOrAddElement(), getMember(), and getOrAddMember()
2022-07-07 14:32:43 +02:00
Benoit Blanchon
758580bfb6
Rename addElement() to add()
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
5b06b1564e
Remove undocumented accept() functions
2022-07-03 17:38:03 +02:00
Benoit Blanchon
e2bb2cec7b
Fix comparison operators for JsonObject and JsonObjectConst
2022-06-10 11:14:59 +02:00
Benoit Blanchon
ff4e837df5
Fix comparison operators for JsonArray and JsonArrayConst
2022-06-09 21:06:32 +02:00
Benoit Blanchon
3d6c328a4f
Add JsonVariant::link() ( resolves #1343 )
2022-04-27 15:08:13 +02:00
Benoit Blanchon
ccfbb5fd1d
Fix 9.22337e+18 outside range of representable values of type 'long'
2022-04-07 20:59:20 +02:00
Benoit Blanchon
67b6797b6d
Set version to 6.19.4
2022-04-05 10:53:11 +02:00
Benoit Blanchon
8d9504239b
Fix comparisons operators with const JsonDocument&
2022-04-05 10:12:17 +02:00