1d21027e2a
Fix lax parsing of true
, false
, and null
( fixes #1781 )
2022-08-06 09:15:07 +02:00
dde9e9fc26
Remove member MsgPackDeserializer::_error
...
This reduces the code size by 54 bytes on AVR.
2022-07-29 11:51:46 +02:00
a6da4ad452
Remove member JsonDeserializer::_error
...
This reduces the code size by 72 bytes on AVR.
2022-07-29 11:51:46 +02:00
84b7037b3e
Add VariantAttorney
2022-07-07 14:32:43 +02:00
c5838a876b
Remove getElement()
, getOrAddElement()
, getMember()
, and getOrAddMember()
2022-07-07 14:32:43 +02:00
750cd0be92
Add collectionToVariant()
2022-07-07 14:32:43 +02:00
758580bfb6
Rename addElement()
to add()
2022-07-07 14:32:43 +02:00
58c7c919f2
Remove unused arrayAccept()
and objectAccept()
2022-07-07 09:44:58 +02:00
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
3b3ab8c4e1
Inline variantAsArray()
and variantAsObject()
2022-07-05 14:02:41 +02:00
5b06b1564e
Remove undocumented accept()
functions
2022-07-03 17:38:03 +02:00
77b4270d97
Remove Visitable
2022-07-03 15:37:08 +02:00
e2bb2cec7b
Fix comparison operators for JsonObject
and JsonObjectConst
2022-06-10 11:14:59 +02:00
ff4e837df5
Fix comparison operators for JsonArray
and JsonArrayConst
2022-06-09 21:06:32 +02:00
fb904033d3
Replace serializeJson()
's template parameter with JsonVariantConst
2022-06-02 20:36:32 +02:00
e6cd16aec4
Add missing const
specifiers in serializers
2022-05-23 19:20:15 +02:00
ee74c3bb1c
Inline variantAccept()
2022-05-23 19:17:18 +02:00
37faa7ce13
Merge definitions of VariantConstRef::accept()
and VariantRef::accept()
2022-05-23 19:11:09 +02:00
3d6c328a4f
Add JsonVariant::link()
( resolves #1343 )
2022-04-27 15:08:13 +02:00
7b19a4b6e7
Add getMemberConst()
and getElementConst()
2022-04-27 15:07:26 +02:00
ac1d29fac0
Add meta function ConverterNeedsWriteableRef<T>
2022-04-27 15:07:26 +02:00
98037e5742
Move several functions from VariantImpl.hpp
to VariantRef.hpp
2022-04-27 15:07:26 +02:00
d0e3808dd0
Move declaration of VariantConstRef
above VariantRef
2022-04-27 15:07:25 +02:00
3760a643cb
Implement comparison out of VariantData
2022-04-27 15:07:25 +02:00
fc9d8aa31e
Implement nesting()
out of VariantData
2022-04-07 21:11:31 +02:00
ccfbb5fd1d
Fix 9.22337e+18 outside range of representable values of type 'long'
2022-04-07 20:59:20 +02:00
67b6797b6d
Set version to 6.19.4
2022-04-05 10:53:11 +02:00
8d9504239b
Fix comparisons operators with const JsonDocument&
2022-04-05 10:12:17 +02:00
bf5d0c790c
Add implicit conversion from JsonDocument
to JsonVariant
2022-03-23 17:17:35 +01:00
3dc67c5663
Add memoryUsage()
to ElementProxy
and MemberProxy
( fixes #1730 )
2022-03-19 12:11:40 +01:00
7abf875071
Set version to 6.19.3
2022-03-08 17:24:14 +01:00
e3e375f5cd
MessagePack: serialize round floats as integers ( fixes #1718 )
2022-02-28 19:38:26 +01:00
ff06292d74
Fix -Wsign-conversion -funsigned-char
( fixes #1715 )
2022-02-28 10:00:12 +01:00
89ed54362b
Fix -Wsign-conversion
on GCC 8 ( fixes #1715 )
2022-02-25 10:28:42 +01:00
f831ed395d
Fix JsonString
operator ==
and !=
for non-zero-terminated string
2022-02-17 17:33:16 +01:00
a880614a75
Fix call of overloaded 'String(const char*, int)' is ambiguous
2022-02-17 17:33:16 +01:00
ef8379df1b
Set version to 6.19.2
2022-02-14 09:06:06 +01:00
702f8c2e2f
Fix cannot convert 'pgm_p' to 'const void*'
( fixes #1707 )
2022-02-06 11:14:23 +01:00
6ea2815341
Set version to 6.19.1
2022-01-14 08:49:57 +01:00
3c145f1782
Add assertions to comfort Clang-Tidy
2022-01-13 20:25:49 +01:00
21b2c76524
Fix filter not working in zero-copy mode ( fixes #1697 )
2022-01-13 20:25:49 +01:00
4f6244eef4
Replace CopiedString
and LinkedString
with JsonString
2022-01-13 16:15:53 +01:00
973858b835
Remove unused CopiedString
in MemoryPool
2022-01-13 16:10:42 +01:00
ee12155617
Fix crash when adding an object member in a too small JsonDocument
2022-01-13 11:52:45 +01:00
9693fd2d74
Set version to 6.19.0
2022-01-08 16:21:29 +01:00
af18994deb
Update copyright notice
2022-01-01 10:01:05 +01:00
29ba744d64
Add a polyfill for pgm_read_ptr()
(issue #1433 )
2021-12-31 14:39:38 +01:00
a2e1021d7d
Use pgm_read_dword()
instead of pgm_read_float()
(issue #1433 )
2021-12-31 14:39:38 +01:00
d20c3c65c8
Add a polyfill for pgm_read_dword()
(issue #1433 )
2021-12-31 14:39:38 +01:00
91ed68b4a6
Fix conflicting definition of ARDUINOJSON_DEFINE_STATIC_ARRAY()
2021-12-31 14:39:38 +01:00