mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-19 05:22:24 +02:00
Added JsonError
This commit is contained in:
@ -76,8 +76,8 @@ void setup() {
|
||||
DynamicJsonObject root(capacity);
|
||||
|
||||
// Parse JSON object
|
||||
bool success = deserializeJson(root, client);
|
||||
if (!root.success()) {
|
||||
JsonError error = deserializeJson(root, client);
|
||||
if (error) {
|
||||
Serial.println(F("Parsing failed!"));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user