Commit Graph

  • 6ed87029e2 Fix no instance of overloaded function... on IAR (fixes #2001) Benoit Blanchon 2023-12-06 17:34:42 +01:00
  • f7dcea562f CI: always use libc++ with clang Benoit Blanchon 2023-11-06 13:24:32 +01:00
  • 4774ca3d29 Force inline ZeroTerminatedRamString::size() Ported from 7517ecb91b Benoit Blanchon 2023-11-06 09:50:11 +01:00
  • 7517ecb91b Force inline ZeroTerminatedRamString::size() Resolves #1990 Benoit Blanchon 2023-11-06 09:50:11 +01:00
  • 8cbb0975a1 Less shitty float to double conversion to avoid compiler warning esp-idf-refactoring 0xFEEDC0DE64 2023-10-10 15:03:49 +02:00
  • 26b2ff4c0f Reorder StringNode's members to reduce code size Benoit Blanchon 2023-10-09 14:55:49 +02:00
  • 7e6b89d21f Use only one byte for the string length on 8-bit platforms Benoit Blanchon 2023-10-09 14:53:16 +02:00
  • d20e64187b Use only one byte for the reference counter on 8-bit platforms Benoit Blanchon 2023-10-09 14:47:47 +02:00
  • 86e06c901f Add ARDUINOJSON_SIZEOF_POINTER Benoit Blanchon 2023-10-09 14:40:18 +02:00
  • 6fe4b9c01d Detect string length overflows Benoit Blanchon 2023-10-09 11:58:02 +02:00
  • 9b34069a3b Remove obsolete comments Benoit Blanchon 2023-09-25 15:16:41 +02:00
  • 30ea01bc31 StringExample: remove obsolete comment Benoit Blanchon 2023-09-24 18:12:01 +02:00
  • 92c9faf69f Fix 'std::string_view' has not been declared (issue #1967) Benoit Blanchon 2023-09-13 18:12:18 +02:00
  • b20653ee1a Fix 'std::string' has not been declared (issue #1967) Benoit Blanchon 2023-09-13 18:13:18 +02:00
  • 49e2a8d421 Fix 'std::string_view' has not been declared (issue #1967) Benoit Blanchon 2023-09-13 18:12:18 +02:00
  • 259855a87b Fix 'std::string' has not been declared (issue #1967) Benoit Blanchon 2023-09-13 18:13:18 +02:00
  • aebf042bae Test custom converter for char (#1963) Benoit Blanchon 2023-08-24 09:43:23 +02:00
  • 750d53f8c7 Update URLs to point to https://arduinojson.org/v7/ Benoit Blanchon 2023-08-19 16:08:12 +02:00
  • 7bd2ea1072 Remove mentions of the zero-copy mode Benoit Blanchon 2023-08-19 16:05:04 +02:00
  • 51c5f1a73a Fix a Clang-Tidy warning Benoit Blanchon 2023-08-10 19:27:03 +02:00
  • ac9b74df65 Show a warning when ARDUINOJSON_ENABLE_STRING_DEDUPLICATION is defined Benoit Blanchon 2023-08-10 18:38:05 +02:00
  • 305e80c09d Show an error if ARDUINOJSON_SLOT_OFFSET_SIZE is defined Benoit Blanchon 2023-08-10 18:28:38 +02:00
  • fc1f06822c CI: add GCC 12 Benoit Blanchon 2023-08-10 14:36:52 +02:00
  • a8c763c40e CI: add clang 11, 12, 13, 14, and 15 Benoit Blanchon 2023-08-10 14:36:13 +02:00
  • 7ab6fc078c CI: remove Clang 3.8 Benoit Blanchon 2023-08-10 18:18:30 +02:00
  • c98ba999af Add more tests of JsonDocument constructor Benoit Blanchon 2023-08-10 09:40:36 +02:00
  • 1d583f68da Add stubs for JSON_ARRAY_SIZE, JSON_OBJECT_SIZE, and JSON_STRING_SIZE Benoit Blanchon 2023-08-09 18:58:30 +02:00
  • e93fd7657f Add a "Breaking changes" section to the changelog Benoit Blanchon 2023-08-09 18:45:53 +02:00
  • 78399c2d78 Add a stub for createNestedObject() Benoit Blanchon 2023-08-09 15:57:25 +02:00
  • 8cc645c40c Add a stub for createNestedArray() Benoit Blanchon 2023-08-09 15:42:40 +02:00
  • 11373af344 Add a stub for add() Benoit Blanchon 2023-08-09 15:27:16 +02:00
  • 53d54ba9d7 Add a stub for shallowCopy() Benoit Blanchon 2023-08-09 15:19:15 +02:00
  • 2f31c932d7 Add a stub for memoryUsage() Benoit Blanchon 2023-08-09 18:07:24 +02:00
  • 93cb3d2fdc Add a stub for BasicJsonDocument Benoit Blanchon 2023-08-09 14:48:58 +02:00
  • be5d5300a2 Add a stub for DynamicJsonDocument Benoit Blanchon 2023-08-09 18:02:31 +02:00
  • ea5b019552 Add a stub for StaticJsonDocument Benoit Blanchon 2023-08-09 14:21:01 +02:00
  • bc6707b10c Rename tests/JsonObject/invalid.cpp to unbound.cpp Benoit Blanchon 2023-08-09 11:46:30 +02:00
  • adea7f4131 Extract VariantRefBaseImpl.hpp Benoit Blanchon 2023-08-09 11:41:55 +02:00
  • 7f459adc4b Remove createNestedArray() and createNestedObject() Benoit Blanchon 2023-08-09 11:31:29 +02:00
  • cdc1262127 Remove unused JsonDocument constructor Benoit Blanchon 2023-08-09 11:07:27 +02:00
  • f422b7b37d Replace add() with add<T>() (add(T) is still supported) Benoit Blanchon 2023-08-09 10:57:52 +02:00
  • 7a587ac2e2 Fix some getVariant() that were accidentally renamed to getSlot() Benoit Blanchon 2023-08-09 10:08:40 +02:00
  • 38941d5807 Tests: use sections for filters tests Benoit Blanchon 2023-08-01 19:14:11 +02:00
  • 57454cf97b Don't call shrinkToFit() for deserializeXxx(JsonVariant) Benoit Blanchon 2023-08-01 18:39:35 +02:00
  • af6954c224 serializeXxx() sets std::string and String instead of appending Benoit Blanchon 2023-07-31 18:37:35 +02:00
  • 3003756adb Reformat filters test file Benoit Blanchon 2023-07-31 17:34:53 +02:00
  • 218a12ca46 Call shrinkToFit() in deserializeJson() and deserializeMsgPack() Benoit Blanchon 2023-07-31 17:34:17 +02:00
  • 752d01a7f1 Add an enable_if to validate the first argument to deserializeXxx() Benoit Blanchon 2023-07-29 12:05:06 +02:00
  • 43eed00cd9 Add deserializeXxx(JsonVariant, ...) (resolves #1226) Benoit Blanchon 2023-07-29 05:07:20 +02:00
  • bc8ea36781 Tests: gather deserializeMsgPack() errors test cases Benoit Blanchon 2023-07-29 06:24:08 +02:00
  • 8fb187baed Tests: gather deserializeJson() errors test cases Benoit Blanchon 2023-07-27 14:52:58 +02:00
  • db5b5f9ee2 Fix a typo in the changelog Benoit Blanchon 2023-07-29 06:33:29 +02:00
  • 9122d87f12 Tests: remove duplicate test of incomplete input Benoit Blanchon 2023-07-27 14:31:56 +02:00
  • 9a11d98117 Tests: make allocator assertions more readable Benoit Blanchon 2023-07-26 06:06:38 +02:00
  • 30ec507989 Tests: use a consistent naming convention for allocators Benoit Blanchon 2023-07-25 14:53:54 +02:00
  • 7a76da3bc7 Tests: rename ControllableAllocator to KillswitchAllocator Benoit Blanchon 2023-07-25 14:46:25 +02:00
  • a8329564e2 Remove JsonDocument::garbageCollect() Benoit Blanchon 2023-07-25 14:37:25 +02:00
  • 00c9d8680a Remove memoryUsage() Benoit Blanchon 2023-07-24 17:21:25 +02:00
  • 2fdacb1ca0 Reduce size of CollectionData::clear() Benoit Blanchon 2023-07-24 10:24:33 +02:00
  • 228c4cf9fa JsonDocument: use the copy-and-swap idiom Benoit Blanchon 2023-07-24 10:13:17 +02:00
  • 9d2d257851 Scripts: call wandbox/publish.sh from get-release-page.sh Benoit Blanchon 2023-07-23 18:08:54 +02:00
  • 5458e916ea Show a link to the doc when user passes an unsupported input type Benoit Blanchon 2023-07-23 18:08:21 +02:00
  • 9794ba24b2 Remove duplicate comment block in wandbox's JsonGeneratorExample.cpp Benoit Blanchon 2023-07-23 17:59:27 +02:00
  • 4b00783345 Set version to 6.21.3 v6.21.3 Benoit Blanchon 2023-07-23 17:49:42 +02:00
  • 371fa4667e Scripts: call wandbox/publish.sh from get-release-page.sh Benoit Blanchon 2023-07-23 17:44:06 +02:00
  • 7eec01cdd6 Show a link to the doc when user passes an unsupported input type Benoit Blanchon 2023-07-23 16:39:24 +02:00
  • 1a14499612 Preallocate pool list Benoit Blanchon 2023-07-21 10:38:35 +02:00
  • f427706e06 VariantPoolList: handle SlotId overflow Benoit Blanchon 2023-07-20 19:04:40 +02:00
  • 8be0d57d24 VariantPoolList: reduce the size of capacity_ and count_ Benoit Blanchon 2023-07-20 18:13:07 +02:00
  • 8fcaebb44a Detect null slot id earlier in VariantPoolList::getSlot() Benoit Blanchon 2023-07-20 14:57:44 +02:00
  • bd2d232b40 JsonParseExample: use a const char* instead of a char[] Benoit Blanchon 2023-07-20 14:47:51 +02:00
  • b69a952e69 Examples: remove outdated comments Benoit Blanchon 2023-07-20 14:45:53 +02:00
  • 727a1013ca Recycle removed slots Benoit Blanchon 2023-07-20 17:54:38 +02:00
  • 781e449e78 CollectionData::releaseSlot() takes an iterator Benoit Blanchon 2023-07-20 10:46:37 +02:00
  • d4af8cffa7 Store current and next slot id in CollectionIterator Benoit Blanchon 2023-07-20 10:36:44 +02:00
  • 0f3c73a211 Remove VariantPool::capacity() Benoit Blanchon 2023-07-17 21:08:49 +02:00
  • 0f319e7ca4 Remove capacity from JsonDocument's constructor Benoit Blanchon 2023-07-17 18:15:13 +02:00
  • 42b2840009 Create more memory pools as needed (resolves #1074) Benoit Blanchon 2023-07-17 14:39:57 +02:00
  • 65c67d317a AllocatorLog: support nulls in deallocate() and reallocate() Benoit Blanchon 2023-07-17 14:46:00 +02:00
  • c4e5051a7a Store index of slot in the pool instead of a pointer or a distance Benoit Blanchon 2023-06-14 11:57:31 +02:00
  • 068c40d6ed Add Dev Container configs Benoit Blanchon 2023-03-27 18:59:21 +02:00
  • c203c86a42 CI: add --output-on-failure for coverage and valgrind tasks Benoit Blanchon 2023-07-12 16:18:00 +02:00
  • 8aec448adf Add missing declaration of offsetof() Benoit Blanchon 2023-07-12 09:59:29 +02:00
  • 9538bc32af Implement the object copy at the JsonObject level Benoit Blanchon 2023-07-11 19:03:46 +02:00
  • b2aa0029b9 Implement array copy at the JsonArray level Benoit Blanchon 2023-07-11 18:56:19 +02:00
  • 57e9134540 Implement variant copy at the JsonVariant level Benoit Blanchon 2023-07-10 18:26:45 +02:00
  • fb4cb96c6c Move JsonArray and JsonObject converters to ConverterImpl.hpp Benoit Blanchon 2023-07-10 18:29:44 +02:00
  • 5e3f84c718 Merge all visitXxx() into one overloaded visit() function Benoit Blanchon 2023-07-10 18:27:30 +02:00
  • 64922343e6 visitNull() takes a nullptr_t Benoit Blanchon 2023-07-10 16:14:56 +02:00
  • 1d07abddcd Add nullptr_t Benoit Blanchon 2023-07-10 16:12:36 +02:00
  • 21bf4973de visitRawString() takes a RawString Benoit Blanchon 2023-07-10 15:56:45 +02:00
  • da845ae01d visitString() takes a JsonString Benoit Blanchon 2023-07-10 15:50:33 +02:00
  • 5a9d3422f5 Add JsonVariantVisitor and use it for comparisons Benoit Blanchon 2023-07-10 17:34:11 +02:00
  • 7a9feb4d6e Rename Visitor to VariantDataVisitor Benoit Blanchon 2023-07-10 14:19:54 +02:00
  • 39e8b63746 Remove shallowCopy() Benoit Blanchon 2023-07-03 12:02:24 +02:00
  • c37990d791 CollectionData: addSlot() returns an iterator Benoit Blanchon 2023-07-03 11:53:56 +02:00
  • fac5b5a7a7 CollectionData: allocate the slot in addSlot() Benoit Blanchon 2023-07-03 11:45:14 +02:00
  • 5ceb5d1813 Use CollectionIterator in CollectionData::memoryUsage() Benoit Blanchon 2023-07-03 10:31:17 +02:00
  • ec4c73db0b Use CollectionIterator in CollectionData::nesting() Benoit Blanchon 2023-07-03 10:29:16 +02:00
  • f86b22cf4f Replace slotRelease() with CollectionData::releaseSlot() Benoit Blanchon 2023-07-03 10:26:20 +02:00