Skip to content

Commit

Permalink
Merge pull request #159 from Jetinho/patch-2
Browse files Browse the repository at this point in the history
update doc according to ArduinoJson upgrade
  • Loading branch information
mathieucarbou authored Nov 15, 2024
2 parents c38d615 + 60f9b47 commit cee7292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Endpoints which consume JSON can use a special handler to get ready to use JSON
#include "ArduinoJson.h"

AsyncCallbackJsonWebHandler* handler = new AsyncCallbackJsonWebHandler("/rest/endpoint", [](AsyncWebServerRequest *request, JsonVariant &json) {
JsonObject& jsonObj = json.as<JsonObject>();
JsonObject jsonObj = json.as<JsonObject>();
// ...
});
server.addHandler(handler);
Expand Down

0 comments on commit cee7292

Please sign in to comment.