We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efbfe56 commit 23cbf4aCopy full SHA for 23cbf4a
JSON_Data/JSON_Data.ino
@@ -0,0 +1,25 @@
1
+#include <ArduinoJson.h>
2
+
3
+void setup() {
4
+ DynamicJsonBuffer jsonBuffer;
5
6
+ Serial.begin(9600);
7
+ String response = "{'status':206,'message':'Valid.','data':[]}";
8
+ JsonObject& root = jsonBuffer.parseObject(response);
9
10
+ int response_status = root["status"];
11
+ String response_message = root["message"];
12
+ String data = root["data"];
13
14
+ Serial.print("status : ");
15
+ Serial.println(response_status);
16
+ Serial.print("message : ");
17
+ Serial.println(response_message);
18
+ Serial.print("data : ");
19
+ Serial.println(data);
20
+}
21
22
+void loop() {
23
+ // put your main code here, to run repeatedly:
24
25
0 commit comments