Commit Graph
103 Commits
Author SHA1 Message Date
Benoit Blanchon d92eee8736 Deprecate containsKey() in favor of doc["key"].is<T>()
See #2121
2024-09-06 17:32:09 +02:00
Benoit Blanchon e4e2557b76 Move test of decomposeFloat() 2024-09-03 13:27:39 +02:00
Benoit Blanchon 3b6bf45b8a Serialize float with less decimal places than double 2024-09-03 11:44:35 +02:00
Benoit Blanchon e34c27723a Fix build on modern compilers 2024-06-18 13:51:40 +02:00
Benoit Blanchon 45611924f3 Tests: add user-defined literal ""_s for std::string 2024-06-07 09:35:45 +02:00
Benoit Blanchon 9e0c56acc3 Replace ConverterNeedsWriteableRef with function_traits 2024-05-22 09:27:14 +02:00
Benoit Blanchon 72642e3090 Fix compatibility with GCC 4.8
Closes #2045
2024-02-01 21:37:45 +01:00
Benoit Blanchon 0e8a236583 Update copyright year 2024-01-03 08:47:06 +01:00
Benoit Blanchon b20653ee1a Fix 'std::string' has not been declared (issue #1967)
Ported from 259855a87b
2023-09-13 18:31:22 +02:00
Benoit Blanchon 7f459adc4b Remove createNestedArray() and createNestedObject() 2023-08-09 12:08:21 +02:00
Benoit Blanchon af6954c224 serializeXxx() sets std::string and String instead of appending 2023-07-31 18:37:35 +02:00
Benoit Blanchon 9a11d98117 Tests: make allocator assertions more readable 2023-07-26 09:28:21 +02:00
Benoit Blanchon 30ec507989 Tests: use a consistent naming convention for allocators 2023-07-25 14:53:54 +02:00
Benoit Blanchon 00c9d8680a Remove memoryUsage() 2023-07-24 17:21:25 +02:00
Benoit Blanchon 0f319e7ca4 Remove capacity from JsonDocument's constructor 2023-07-18 09:08:55 +02:00
Benoit Blanchon 4871380060 Rename MemoryPool to ResourceManager 2023-06-18 10:14:39 +02:00
Benoit Blanchon 044a4753d2 Rename StringCopier to StringBuilder 2023-05-10 10:12:55 +02:00
Benoit Blanchon 95f5d9d134 Fix compatibility with the Blynk libary (fixes #1914)
Ported from 52d8a65cbc
2023-04-21 19:08:53 +02:00
Benoit Blanchon 461cdaa818 Allow using PROGMEM outside of Arduino (fixes #1903)
Ported from 40daf56b5a
2023-04-21 19:08:53 +02:00
Benoit Blanchon dd46813dc0 Change naming convention from _member to member_ (fixes #1905)
Ported from 31ce648e63
2023-04-21 18:59:48 +02:00
Benoit Blanchon d8f3058efa Store the strings in the heap 2023-04-17 10:42:08 +02:00
Benoit Blanchon e9850152a7 Tests: replace constants with sizeofString(n) 2023-04-07 14:50:54 +02:00
Benoit Blanchon 3f43c2b816 Remove JSON_ARRAY_SIZE(), JSON_OBJECT_SIZE(), and JSON_STRING_SIZE() 2023-03-29 19:18:06 +02:00
Benoit Blanchon 5faa3df43f MemoryPool calls the Allocator directly 2023-03-20 15:03:09 +01:00
Benoit Blanchon 540901e219 Merge DynamicJsonDocument with JsonDocument 2023-03-20 14:49:51 +01:00
Benoit Blanchon 17a482a9b1 Remove StaticJsonDocument 2023-03-20 10:40:35 +01:00
Benoit Blanchon c89a2025ce Make string support generic (issue #1807) 2023-03-13 12:19:05 +01:00
Benoit Blanchon 33a4773fbd Set clang-format standard to C++11 (#1820) 2023-02-16 11:51:02 +01:00
Benoit Blanchon daa87e12dc Update copyright notice 2023-02-16 11:45:01 +01:00
Benoit Blanchon 1b66a217bf Replace ARDUINOJSON_NAMESPACE with an inline namespace (#1820) 2023-02-14 10:04:48 +01:00
Benoit Blanchon 62dea9d364 Reformat CMake files 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 1ec16ca94f Use pgm_read() instead of ARDUINOJSON_READ_STATIC_ARRAY 2023-01-26 14:55:46 +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 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 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 62e83133cd Remove JsonDocument::data() and JsonDocument::memoryPool() 2022-08-09 10:38:36 +02:00
Benoit Blanchon 77b4270d97 Remove Visitable 2022-07-03 15:37:08 +02: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