Examples
Here are the 10 official examples of ArduinoJson. They are available in the "Examples" menu of the Arduino IDE.
JSON Generator
This example shows how to generate a JSON document with the ArduinoJson library.
MessagePack parser
This example shows how to parse a MessagePack input with ArduinoJson.
JSON HTTP Client
This example shows how to parse a JSON document in an HTTP response. It uses the Ethernet library, but can be easily adapted for Wifi.
JSON UDP Beacon
This example shows how to send a JSON document to a UDP socket. It uses the Ethernet library but could easily be changed to support Wifi.
JSON HTTP Server
This example shows how to implement an HTTP server that sends JSON document in the responses.
JSON Configuration File
This example shows how to store your project configuration in a file. It uses the SD library but can be easily modified for any other file-system.
String objects and ArduinoJson
This example shows the different ways you can use String
objects with ArduinoJson.
Flash strings and ArduinoJson
This example shows the different ways you can use Flash strings (PROGMEM
) with ArduinoJson.
Filtering
This example shows how to filter a large input to keep only the relevant fields.