EasyManuals Logo

Adafruit ESP32-S3 User Manual

Adafruit ESP32-S3
263 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #218 background imageLoading...
Page #218 background image
JSON Parsing Demo
This example is a little more advanced - many sites will have API's that give you JSON
data. We will build on the previous SSL example to connect to twitter and get that
JSON data chunk
Then we'll useArduinoJSON()to convert that to a format we can use and then
display that data on the serial port (which can then be re-directed to a display of some
sort)
First up,use the Library manager to install ArduinoJSON().
Then load the exampleJSONdemoby copying the code below and pasting it into
your Arduino IDE.
// SPDX-FileCopyrightText: 2014 Benoit Blanchon
// SPDX-FileCopyrightText: 2014 Arturo Guadalupi
// SPDX-FileCopyrightText: 2020 Brent Rubell for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*
This example creates a client object that connects and transfers
data using always SSL, then shows how to parse a JSON document in an HTTP response.
It is compatible with the methods normally related to plain
connections, like client.connect(host, port).
©Adafruit Industries Page 218 of 263

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Adafruit ESP32-S3 and is the answer not in the manual?

Adafruit ESP32-S3 Specifications

General IconGeneral
BrandAdafruit
ModelESP32-S3
CategoryMicrocontrollers
LanguageEnglish

Related product manuals