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 23b01a89b1e1faf2fdee4b7287e769676b21852b
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
Benoit Blanchon
bf5d0c790c
Add implicit conversion from JsonDocument to JsonVariant
2022-03-23 17:17:35 +01:00
Benoit Blanchon
3dc67c5663
Add memoryUsage() to ElementProxy and MemberProxy ( fixes #1730 )
2022-03-19 12:11:40 +01:00
Benoit Blanchon
7abf875071
Set version to 6.19.3
2022-03-08 17:24:14 +01:00
Benoit Blanchon
e3e375f5cd
MessagePack: serialize round floats as integers ( fixes #1718 )
2022-02-28 19:38:26 +01:00
Benoit Blanchon
89ed54362b
Fix -Wsign-conversion on GCC 8 ( fixes #1715 )
2022-02-25 10:28:42 +01:00
Benoit Blanchon
f831ed395d
Fix JsonString operator == and != for non-zero-terminated string
2022-02-17 17:33:16 +01:00
Benoit Blanchon
a880614a75
Fix call of overloaded 'String(const char*, int)' is ambiguous
2022-02-17 17:33:16 +01:00
Benoit Blanchon
ef8379df1b
Set version to 6.19.2
2022-02-14 09:06:06 +01:00
Benoit Blanchon
702f8c2e2f
Fix cannot convert 'pgm_p' to 'const void*' ( fixes #1707 )
2022-02-06 11:14:23 +01:00
Benoit Blanchon
6ea2815341
Set version to 6.19.1
2022-01-14 08:49:57 +01:00
Benoit Blanchon
21b2c76524
Fix filter not working in zero-copy mode ( fixes #1697 )
2022-01-13 20:25:49 +01:00