33a4773fbd
Set clang-format standard to C++11 ( #1820 )
2023-02-16 11:51:02 +01:00
daa87e12dc
Update copyright notice
2023-02-16 11:45:01 +01:00
1b66a217bf
Replace ARDUINOJSON_NAMESPACE
with an inline namespace ( #1820 )
2023-02-14 10:04:48 +01:00
8f7211a50f
Remove ARDUINOJSON_HAS_NULLPTR
( #1820 )
2023-02-10 17:02:52 +01:00
2be4ee732a
Remove ARDUINOJSON_HAS_RVALUE_REFERENCES
( #1820 )
2023-02-10 17:02:52 +01:00
3bdedc9a2f
Remove ARDUINOJSON_HAS_LONG_LONG
( #1820 )
2023-02-10 17:02:52 +01:00
62dea9d364
Reformat CMake files
2023-02-10 17:02:51 +01:00
e0bdc4bff1
Remove unused variables ( fixes #1858 )
2023-02-10 17:02:51 +01:00
007b4f3362
Update Catch library to 2.13.10 ( #1820 )
2023-02-10 17:02:51 +01:00
94b2b3f9ce
Run all tests with C++11 enabled ( #1820 )
2023-02-10 17:02:51 +01:00
1ec16ca94f
Use pgm_read()
instead of ARDUINOJSON_READ_STATIC_ARRAY
2023-01-26 14:55:46 +01:00
bf93779b4f
Update catch.hpp ( fixes #1856 )
...
See also catchorg/Catch2#2627
2023-01-17 13:53:47 +01:00
175e5b3062
Add missing semicolon ( fixes #1857 )
2023-01-17 08:59:45 +01:00
3345255f16
Fix comma tests.
2023-01-13 08:21:54 +01:00
c49adfd6da
Test custom converter for std::array
(issue #1840 )
2022-12-31 10:48:20 +01:00
191fc5dff4
Remove support for naked char
(was deprecated since 6.18.0)
2022-12-26 11:02:34 +01:00
09f9bd6b8b
Fix detection of char types
2022-12-26 10:21:57 +01:00
7ed2559e9e
Test custom converter for std::vector<T>
(issue #1840 )
2022-12-26 10:09:06 +01:00
ac8e5f01db
Clang-Format: set AllowShortLoopsOnASingleLine
to false
2022-12-24 15:48:00 +01:00
b0730f04f7
Rename VariantRef
to JsonVariant
2022-12-19 14:41:53 +01:00
ef8ed28aec
Rename VariantConstRef
to JsonVariantConst
2022-12-19 14:41:43 +01:00
d0b619ea93
Rename UInt
to JsonUInt
2022-12-19 14:41:43 +01:00
652d70fe2c
Rename Integer
to JsonInteger
2022-12-19 14:41:43 +01:00
dc42d93b0f
Rename ObjectConstRef
to JsonObjectConst
2022-12-19 12:20:37 +01:00
dff07ebfe8
Rename ObjectRef
to JsonObject
2022-12-19 12:20:13 +01:00
83e5d9d150
Rename ArrayConstRef
to JsonArrayConst
2022-12-19 12:12:28 +01:00
7079aa99d7
Rename ArrayRef
to JsonArray
2022-12-19 12:10:58 +01:00
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