Commit Graph

94 Commits

Author SHA1 Message Date
7f459adc4b Remove createNestedArray() and createNestedObject() 2023-08-09 12:08:21 +02:00
af6954c224 serializeXxx() sets std::string and String instead of appending 2023-07-31 18:37:35 +02:00
9a11d98117 Tests: make allocator assertions more readable 2023-07-26 09:28:21 +02:00
30ec507989 Tests: use a consistent naming convention for allocators 2023-07-25 14:53:54 +02:00
00c9d8680a Remove memoryUsage() 2023-07-24 17:21:25 +02:00
0f319e7ca4 Remove capacity from JsonDocument's constructor 2023-07-18 09:08:55 +02:00
4871380060 Rename MemoryPool to ResourceManager 2023-06-18 10:14:39 +02:00
044a4753d2 Rename StringCopier to StringBuilder 2023-05-10 10:12:55 +02:00
95f5d9d134 Fix compatibility with the Blynk libary (fixes #1914)
Ported from 52d8a65cbc
2023-04-21 19:08:53 +02:00
461cdaa818 Allow using PROGMEM outside of Arduino (fixes #1903)
Ported from 40daf56b5a
2023-04-21 19:08:53 +02:00
dd46813dc0 Change naming convention from _member to member_ (fixes #1905)
Ported from 31ce648e63
2023-04-21 18:59:48 +02:00
d8f3058efa Store the strings in the heap 2023-04-17 10:42:08 +02:00
e9850152a7 Tests: replace constants with sizeofString(n) 2023-04-07 14:50:54 +02:00
3f43c2b816 Remove JSON_ARRAY_SIZE(), JSON_OBJECT_SIZE(), and JSON_STRING_SIZE() 2023-03-29 19:18:06 +02:00
5faa3df43f MemoryPool calls the Allocator directly 2023-03-20 15:03:09 +01:00
540901e219 Merge DynamicJsonDocument with JsonDocument 2023-03-20 14:49:51 +01:00
17a482a9b1 Remove StaticJsonDocument 2023-03-20 10:40:35 +01:00
c89a2025ce Make string support generic (issue #1807) 2023-03-13 12:19:05 +01:00
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
62dea9d364 Reformat CMake files 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
1ec16ca94f Use pgm_read() instead of ARDUINOJSON_READ_STATIC_ARRAY 2023-01-26 14:55:46 +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
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
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
62e83133cd Remove JsonDocument::data() and JsonDocument::memoryPool() 2022-08-09 10:38:36 +02:00
77b4270d97 Remove Visitable 2022-07-03 15:37:08 +02: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
af18994deb Update copyright notice 2022-01-01 10:01:05 +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
ca24ed48f5 Separate string adapter from storage policy 2021-12-07 16:08:44 +01:00
51937778dd Add operator<<(std::ostream&, const JsonString&) 2021-12-07 16:08:44 +01:00
43b2e2e774 Append terminator in saveStringFromFreeZone() 2021-11-24 19:06:49 +01:00
62f9b94ab1 Add CopiedString and LinkedString 2021-11-24 19:06:49 +01:00
0429016ff1 Remove IsWriteableString 2021-11-12 15:28:33 +01:00
acfa174333 Add safe bool idiom in JsonString 2021-10-24 09:58:39 +02:00