ArduinoJson v7 Migration & Developer Experience Improvements #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ArduinoJson v7 Migration & Developer Experience Improvements
Summary
This PR modernizes the library with ArduinoJson v7 compatibility, adds SSL/TLS support for production security, and significantly improves the developer experience by enabling configuration overrides without editing library source files.
Changes
New Features
#definestatements before including the library (Arduino IDE) or viabuild_flags(PlatformIO), eliminating the need to editESP32_AI_Connect_config.hsetRootCA()andgetRootCA()methods allow enabling secure connections with certificate verification (disabled by default for backwards compatibility and ease of use)Refactoring
DynamicJsonDocument/StaticJsonDocument→JsonDocumentcontainsKey()→!field.isNull()createNestedArray()/createNestedObject()→.to<JsonArray>()/.to<JsonObject>()Documentation
keywords.txtwith new methodsNew Configuration Pattern
New SSL/TLS Feature
Enable secure connections with certificate verification for production deployments: