Benoit Blanchon
94b2b3f9ce
Run all tests with C++11 enabled ( #1820 )
2023-02-10 17:02:51 +01:00
Benoit Blanchon
1ec16ca94f
Use pgm_read() instead of ARDUINOJSON_READ_STATIC_ARRAY
2023-01-26 14:55:46 +01:00
Benoit Blanchon
bf93779b4f
Update catch.hpp ( fixes #1856 )
...
See also catchorg/Catch2#2627
2023-01-17 13:53:47 +01:00
Benoit Blanchon
175e5b3062
Add missing semicolon ( fixes #1857 )
2023-01-17 08:59:45 +01:00
Johan Vromans
3345255f16
Fix comma tests.
2023-01-13 08:21:54 +01:00
Benoit Blanchon
c49adfd6da
Test custom converter for std::array (issue #1840 )
2022-12-31 10:48:20 +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
09f9bd6b8b
Fix detection of char types
2022-12-26 10:21:57 +01:00
Benoit Blanchon
7ed2559e9e
Test custom converter for std::vector<T> (issue #1840 )
2022-12-26 10:09:06 +01:00
Benoit Blanchon
ac8e5f01db
Clang-Format: set AllowShortLoopsOnASingleLine to false
2022-12-24 15:48:00 +01:00
Benoit Blanchon
b0730f04f7
Rename VariantRef to JsonVariant
2022-12-19 14:41:53 +01:00
Benoit Blanchon
ef8ed28aec
Rename VariantConstRef to JsonVariantConst
2022-12-19 14:41:43 +01:00
Benoit Blanchon
d0b619ea93
Rename UInt to JsonUInt
2022-12-19 14:41:43 +01:00
Benoit Blanchon
652d70fe2c
Rename Integer to JsonInteger
2022-12-19 14:41:43 +01:00
Benoit Blanchon
dc42d93b0f
Rename ObjectConstRef to JsonObjectConst
2022-12-19 12:20:37 +01:00
Benoit Blanchon
dff07ebfe8
Rename ObjectRef to JsonObject
2022-12-19 12:20:13 +01:00
Benoit Blanchon
83e5d9d150
Rename ArrayConstRef to JsonArrayConst
2022-12-19 12:12:28 +01:00
Benoit Blanchon
7079aa99d7
Rename ArrayRef to JsonArray
2022-12-19 12:10:58 +01:00
Benoit Blanchon
0f85a55cac
Implement VariantRefBase with a CRTP
2022-12-05 21:00:24 +01:00
Benoit Blanchon
b8d1dccb21
Test IsString<String> and IsString<StringSumHelper>
2022-10-31 18:02:07 +01:00
Benoit Blanchon
c3d5e9382d
Implement IsString from StringAdapter
2022-10-26 17:20:33 +02:00
Benoit Blanchon
cf4436e581
Extract VariantProxy from ElementProxy and MemberProxy
2022-08-30 10:25:03 +02:00
Benoit Blanchon
8002722f3b
Clang-format: set DerivePointerAlignment to false
2022-08-09 16:52:17 +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
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
77b4270d97
Remove Visitable
2022-07-03 15:37:08 +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
5577d18377
JsonVariant: add tests for size()
2022-04-27 15:08:13 +02:00
Benoit Blanchon
1d103a1528
MemberProxy: move tests for createNestedArray() and createNestedObject()
2022-04-27 15:07:26 +02:00
Benoit Blanchon
ac1d29fac0
Add meta function ConverterNeedsWriteableRef<T>
2022-04-27 15:07:26 +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
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
f4379f97ae
Format code with clang-format
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
e3e375f5cd
MessagePack: serialize round floats as integers ( fixes #1718 )
2022-02-28 19:38:26 +01:00
Benoit Blanchon
421ecec0dd
Tests: trim trailing white spaces
2022-02-25 10:28:42 +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
702f8c2e2f
Fix cannot convert 'pgm_p' to 'const void*' ( fixes #1707 )
2022-02-06 11:14:23 +01:00
Benoit Blanchon
21b2c76524
Fix filter not working in zero-copy mode ( fixes #1697 )
2022-01-13 20:25:49 +01:00
Benoit Blanchon
4f6244eef4
Replace CopiedString and LinkedString with JsonString
2022-01-13 16:15:53 +01:00
Benoit Blanchon
ee12155617
Fix crash when adding an object member in a too small JsonDocument
2022-01-13 11:52:45 +01:00
Benoit Blanchon
af18994deb
Update copyright notice
2022-01-01 10:01:05 +01:00