The objective of this post is to explain how to parse the response of a HTTP request which is in JSON format. Introduction The objective of this post is to explain how to parse the response of a HTTP GET request which is in JSON format. We will use the Requests library to perform the request …
ESP8266: Encoding JSON messages
The objective of this post is to explain how to encode a JSON message using the ArduinoJson library. Introduction The objective of this post is to explain how to encode a JSON message in the ESP8266, using the ArduinoJson library. We assume that the ESP8266 libraries for the Arduino IDE were previously installed. You can check how …
ESP8266: Parsing JSON Arrays
The objective of this post is to explain how to parse simple JSON Arrays on the ESP8266, using the ArduinoJson library. Introduction In this post, we will create a simple program to parse a JSON string that includes an array of integers. We assume that the ESP8266 libraries for the Arduino IDE were previously installed. …
ESP8266: Parsing JSON
Introduction In this post, we will create a simple program to parse a JSON string simulating data from a sensor and print it to the serial port. We assume that the ESP8266 libraries for the Arduino IDE were previously installed. You can check how to do it here. In order to avoid having to manually decode …