You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
* Added handler for correct JSON deserialization (even with multiple body data writes), addresses me-no-dev#195
* Fixed typo
* Added JSON handler example to readme
* Moved Json Handler uri parameter to constructor
* Use request->_tempObject for JSON char data buffer
* Moved onRequest to constructor in JSON async handler
If needed, the `_tempObject` field on the request can be used to store a pointer to temporary data (e.g. from the body) associated with the request. If assigned, the pointer will automatically be freed along with the request.
318
+
319
+
### JSON body handling with ArduinoJson
320
+
Endpoints which consume JSON can use a special handler to get ready to use JSON data in the request callback:
321
+
```cpp
322
+
#include"AsyncJson.h"
323
+
#include"ArduinoJson.h"
324
+
325
+
AsyncCallbackJsonWebHandler* handler = new AsyncCallbackJsonWebHandler("/rest/endpoint", [](AsyncWebServerRequest *request, JsonVariant &json) {
0 commit comments