Benoit Blanchon
2be4ee732a
Remove ARDUINOJSON_HAS_RVALUE_REFERENCES ( #1820 )
2023-02-10 17:02:52 +01:00
Benoit Blanchon
3bdedc9a2f
Remove ARDUINOJSON_HAS_LONG_LONG ( #1820 )
2023-02-10 17:02:52 +01:00
Benoit Blanchon
407fc2cd45
Drop support for C++98/C++03 ( closes #1820 )
2023-02-10 17:02:52 +01:00
Benoit Blanchon
62dea9d364
Reformat CMake files
2023-02-10 17:02:51 +01:00
Benoit Blanchon
e0bdc4bff1
Remove unused variables ( fixes #1858 )
2023-02-10 17:02:51 +01:00
Benoit Blanchon
007b4f3362
Update Catch library to 2.13.10 ( #1820 )
2023-02-10 17:02:51 +01:00
Benoit Blanchon
94b2b3f9ce
Run all tests with C++11 enabled ( #1820 )
2023-02-10 17:02:51 +01:00
Benoit Blanchon
e054cba610
Set minimum Visual Studio version to 2017 ( #1820 )
2023-02-10 14:49:24 +01:00
Benoit Blanchon
ae0499fd57
Update idf_component.yml
2023-02-08 16:46:15 +01:00
Benoit Blanchon
6013a1a56f
Fix the name of the license file
2023-02-08 16:40:01 +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
Benoit Blanchon
7885155634
Add to IDF Component Registry ( closes #1844 )
2023-01-14 09:26:12 +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