0f85a55cac
Implement VariantRefBase
with a CRTP
2022-12-05 21:00:24 +01:00
b8d1dccb21
Test IsString<String>
and IsString<StringSumHelper>
2022-10-31 18:02:07 +01:00
c3d5e9382d
Implement IsString
from StringAdapter
2022-10-26 17:20:33 +02:00
cf4436e581
Extract VariantProxy
from ElementProxy
and MemberProxy
2022-08-30 10:25:03 +02:00
8002722f3b
Clang-format: set DerivePointerAlignment
to false
2022-08-09 16:52:17 +02:00
62e83133cd
Remove JsonDocument::data()
and JsonDocument::memoryPool()
2022-08-09 10:38:36 +02:00
1d21027e2a
Fix lax parsing of true
, false
, and null
( fixes #1781 )
2022-08-06 09:15:07 +02:00
c5838a876b
Remove getElement()
, getOrAddElement()
, getMember()
, and getOrAddMember()
2022-07-07 14:32:43 +02:00
758580bfb6
Rename addElement()
to add()
2022-07-07 14:32:43 +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
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
3d6c328a4f
Add JsonVariant::link()
( resolves #1343 )
2022-04-27 15:08:13 +02:00
5577d18377
JsonVariant: add tests for size()
2022-04-27 15:08:13 +02:00
1d103a1528
MemberProxy: move tests for createNestedArray()
and createNestedObject()
2022-04-27 15:07:26 +02:00
ac1d29fac0
Add meta function ConverterNeedsWriteableRef<T>
2022-04-27 15:07:26 +02:00
ccfbb5fd1d
Fix 9.22337e+18 outside range of representable values of type 'long'
2022-04-07 20:59:20 +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
f4379f97ae
Format code with clang-format
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
e3e375f5cd
MessagePack: serialize round floats as integers ( fixes #1718 )
2022-02-28 19:38:26 +01:00
421ecec0dd
Tests: trim trailing white spaces
2022-02-25 10:28:42 +01:00
89ed54362b
Fix -Wsign-conversion
on GCC 8 ( fixes #1715 )
2022-02-25 10:28:42 +01:00
986f77fa15
Tests: link with -static
on MinGW
2022-02-25 10:28:22 +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
702f8c2e2f
Fix cannot convert 'pgm_p' to 'const void*'
( fixes #1707 )
2022-02-06 11:14:23 +01:00
6806393285
Wandbox: update compiler version
2022-01-14 09:23:12 +01:00
dea8387586
Publish script: don't stop if wandbox fails
2022-01-14 09:22:55 +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
ee12155617
Fix crash when adding an object member in a too small JsonDocument
2022-01-13 11:52:45 +01:00
fcae33d574
Publish script: fix change log extraction code
2022-01-08 17:59:07 +01:00
896f50eeb9
Publish script: check that all required commands are available
2022-01-08 16:40:21 +01:00
37f1c87338
Publish script: check that all changes are committed
2022-01-08 16:21:09 +01:00
9f4750637b
Add PlatformIO badge to README
2022-01-05 12:08:18 +01:00
af18994deb
Update copyright notice
2022-01-01 10:01:05 +01:00
78660c6e07
Fix support of long long in catch
2022-01-01 10:01:05 +01:00
ad7b749dec
CI: build with arduino-cli
2021-12-31 14:39:39 +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
67fc2d9897
Assume PROGMEM
is available as soon as ARDUINO
is defined ( #1693 )
2021-12-31 11:00:50 +01:00
ec7ffa20f2
Avoid Arduino.h
when all its features are disabled ( fixes #1692 )
2021-12-27 13:16:24 +01:00
ada1f2a894
Add support for char[][]
in copyArray()
2021-12-20 17:51:44 +01:00
0f529a3587
Renamed undocumented function isUndefined()
to isUnbound()
2021-12-16 14:55:26 +01:00
e16767af92
Avoid pool reallocation in BasicJsonDocument
's copy assignment
2021-12-16 14:42:54 +01:00