forked from bblanchon/ArduinoJson
Added JsonError
This commit is contained in:
1 parent
83d73c93f7
commit
b2a8085651
24 files changed
+641
-515
No files matched your search
@@ -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