Commit Graph

1919 Commits

Author SHA1 Message Date
2cfefe22ac Add ARDUINOJSON_STRING_LENGTH_SIZE to the namespace name 2024-04-18 14:19:43 +02:00
0d43e51d48 Fix typo in "endianness"
Closes #2071
2024-03-26 13:43:07 +01:00
ef28064317 CI: merge the two "amalgamate" jobs 2024-03-18 10:54:36 +01:00
7c62cdb264 CI: update GitHub Actions 2024-03-17 21:30:42 +01:00
0ab4bdd691 CI: add a workaround for actions/runner-images#9491 2024-03-17 21:30:42 +01:00
af8c615266 Rename tests/JsonObject/copy.cpp to set.cpp 2024-03-16 14:02:56 +01:00
bd13375729 CI: add timeouts in the gcc job 2024-03-14 10:27:09 +01:00
5f8502ce9d Upgrade to lock-threads version 5+ 2024-03-14 09:51:44 +01:00
1404b1ef70 Add a workaround for particle-iot/particle-cli#716 2024-03-12 10:02:30 +01:00
36e1eecc7d Set version to 7.0.4 v7.0.4 2024-03-12 09:40:46 +01:00
ca2f80aeaf Add links to the documentation 2024-02-21 10:48:50 +01:00
f17fc055d3 Make JSON_STRING_SIZE(N) return N+1 to fix third-party code
ThingsBoard uses this macro to compute size of char arrays ಠ_ಠ
https://github.com/thingsboard/thingsboard-client-sdk/blob/v0.12.2/src/Helper.h#L38

Closes #2054
2024-02-18 20:00:25 +01:00
04ac53d114 Remove final from JsonArray, JsonObject, and JsonVariant
`final` breaks ThingsBoard ಠ_ಠ
https://github.com/thingsboard/thingsboard-client-sdk/blob/v0.12.2/src/RPC_Response.h#L10

See #2056.
This reverts commit 483a2c9101.
2024-02-18 20:00:24 +01:00
483a2c9101 Mark JsonArray, JsonObject, and JsonVariant as final
See #2056
2024-02-18 10:52:07 +01:00
848c0cdc7e Set version to 7.0.3 v7.0.3 2024-02-05 13:34:38 +01:00
46a807bd30 Remove unused NO_INLINE 2024-02-05 11:56:08 +01:00
cb0dc94db4 Remove most FORCE_INLINEs
I kept only the ones that had a positive impact on code size AND no negative impact on stack memory.

Fixes #2046
2024-02-05 11:48:27 +01:00
72642e3090 Fix compatibility with GCC 4.8
Closes #2045
2024-02-01 21:37:45 +01:00
c98b05e207 Dont't inline JsonSerializer::visit(const ArrayData&)
It didn't improve the code size and was inconsistent with this other functions.
2024-02-01 10:24:01 +01:00
2a87cc5839 Stop using CollectionIterator in MsgPackSerializer
This doesn't reduce code size or stack usage, but as least it's consistent with `JsonSerializer`.
2024-02-01 10:24:01 +01:00
296fe79bfd Stop using CollectionIterator in JsonSerializer
This reduces stack consumption and code size.
See  #2046
2024-02-01 10:24:00 +01:00
650d537b5d Improve error messages when using char or char*
See #2043
2024-01-26 10:34:49 +01:00
0435945a62 Set version to 7.0.2 v7.0.2 2024-01-19 14:36:16 +01:00
844a50296f Fix link to shrinkToFit()'s documentation 2024-01-16 14:29:08 +01:00
1b143d383b Fix assertion poolIndex < count_ after JsonDocument::clear()
Fixes #2034
2024-01-16 10:10:43 +01:00
94783fdd2a Set version to 7.0.1 v7.0.1 2024-01-10 21:14:07 +01:00
e41d5d4fa1 Shorten the library description 2024-01-10 18:11:49 +01:00
5dfa25d3dc Include the number of GitHub stars in the library description. 2024-01-10 18:11:43 +01:00
a7bfc2212c Fix volatile bool serialized as 1 or 0
Ported from 5d1d2721d1
2024-01-10 14:03:12 +01:00
315cc722e9 Add more tests for JsonVariantConst 2024-01-08 19:47:40 +01:00
ca0dda7ac1 Add more tests for JsonArrayConst 2024-01-08 19:47:40 +01:00
08cac13c43 Add more tests for JsonObjectConst 2024-01-08 19:47:36 +01:00
44d2d47863 CI: publish package to PlatformIO registry 2024-01-04 18:05:31 +01:00
3571db6290 Remove unused files in the PlatformIO package 2024-01-04 18:01:52 +01:00
cc42373367 Fix "no matching function" with JsonObjectConst::operator[]
Fixes #2019
2024-01-03 16:30:44 +01:00
9dc43d14f3 Set version to 7.0.0 v7.0.0 2024-01-03 09:19:34 +01:00
3fa6b6e04f Fix typo in change log 2024-01-03 09:19:14 +01:00
2d47b3931d Remove legacy Arduino package from release assets 2024-01-03 09:16:19 +01:00
0e8a236583 Update copyright year 2024-01-03 08:47:06 +01:00
955815fbfa Fix function returns incomplete class type on IAR (issue #2001)
Ported from 3e1be980d9
2023-12-07 15:51:29 +01:00
4cd03fbd26 Fix no instance of overloaded function... on IAR (fixes #2001)
Ported from 6ed87029e2
2023-12-07 15:51:29 +01:00
f7dcea562f CI: always use libc++ with clang 2023-11-06 13:24:32 +01:00
4774ca3d29 Force inline ZeroTerminatedRamString::size()
Ported from 7517ecb91b
2023-11-06 09:52:17 +01:00
26b2ff4c0f Reorder StringNode's members to reduce code size 2023-10-09 15:41:20 +02:00
7e6b89d21f Use only one byte for the string length on 8-bit platforms 2023-10-09 15:21:18 +02:00
d20e64187b Use only one byte for the reference counter on 8-bit platforms 2023-10-09 14:47:47 +02:00
86e06c901f Add ARDUINOJSON_SIZEOF_POINTER 2023-10-09 14:40:18 +02:00
6fe4b9c01d Detect string length overflows 2023-10-09 14:15:55 +02:00
9b34069a3b Remove obsolete comments 2023-09-25 15:16:41 +02:00
30ea01bc31 StringExample: remove obsolete comment 2023-09-24 18:12:01 +02:00