Comments on: Decoding and Encoding JSON with Arduino or ESP8266 https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 13 May 2024 17:52:04 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Frank https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-915170 Mon, 13 May 2024 17:52:04 +0000 http://randomnerdtutorials.com/?p=42247#comment-915170 I really needed to know the basic flow of the JSON creation and this did it for me. One small thing not mentioned is how are the units introduced in the final output. I would like to include those as well. Thanks for the post and thanks for any advice in adding the units.

]]>
By: Tunturi https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-822592 Thu, 02 Mar 2023 20:29:19 +0000 http://randomnerdtutorials.com/?p=42247#comment-822592 Very useful indeed. Would be fantastic to see a arduniojson 6 version also. My rudimentary c++ knowledge did not allow me to do the upgrade myself.

]]>
By: Jaden https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-792205 Mon, 17 Oct 2022 05:39:13 +0000 http://randomnerdtutorials.com/?p=42247#comment-792205 Great tutorial.
thanks!

Could you recommand other project that use API?
I want to know how to use this skill in project.

]]>
By: Lakshaga Jyothi M https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-749655 Mon, 16 May 2022 18:03:30 +0000 http://randomnerdtutorials.com/?p=42247#comment-749655 Hi,
Your tutorial is great. I have my Arduino UNO connected to NodeMCU serially, when i try to serialise json data from Arduino to NodeMCU with hard coded sensor values. And again parse data at NodeMCU. It works well. I tried to capture real values inside the Json in Arduino UNO from the sensors fixed ex. Temperature and Humidity values that are not hard coded. It goes quite well. But when I try to parse the same values in NodeMCU. I could not get the sensor values instead i get the hard coded values inserted in the json structure of parsing program.

]]>
By: Sara Santos https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-731673 Sun, 13 Mar 2022 00:01:57 +0000 http://randomnerdtutorials.com/?p=42247#comment-731673 In reply to Bob Pearn.

Hi,
Take a look at the library documentation, it may help: https://arduinojson.org/v6/doc/
Regards,
Sara

]]>
By: Bob Pearn https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-731532 Fri, 11 Mar 2022 19:07:40 +0000 http://randomnerdtutorials.com/?p=42247#comment-731532 Hello Rui, Sara,
I love your tutorials!
I have made an ESP32 LED matrix and it currently displays (the day, date and year), (OpenWeather API for up to 5 different cities), (a user message) and (special events). Using ESPAsyncWebServer I have several webpages where I can change many of the ESP settings. I have some of these setting stored in preferences but most are kept in text files. These setting are all loaded/updated is a reboot or web-post.
As I progress, I need a method to be able to edit my event list. Currently it is an array hard coded in the sketch. So to add/delete or edit an event I have to recompile and OTA update every time. I believe my solution is to use a JSON file. In fact I could put all my settings into one file.
I need some guidance, I have made an eventlist.json, and using a webserver, I can open and display all the events in the array. I haven’t tried using the ESP yet. What I am having trouble with is how to put all the data into a form I can edit, then update the JSON file.
Any direction you can point me in will be appreciated.

]]>
By: Rodolfo https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-729555 Tue, 01 Mar 2022 10:26:55 +0000 http://randomnerdtutorials.com/?p=42247#comment-729555 In reply to Anupam Majumdar.

I have a ESP32, and get error of migration from 5 to 6, this not work, help ?

]]>
By: Octavian https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-722580 Sun, 30 Jan 2022 06:21:29 +0000 http://randomnerdtutorials.com/?p=42247#comment-722580 Thank you for this straight forward tutorial. I was able to setup a Wemos to send data to thingspeak without issues. But I need to send data to our server from the Institute where I work, and I need to know if I can use the GET request instead POST? It is the same?

]]>
By: Mark https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-460667 Wed, 27 May 2020 02:55:34 +0000 http://randomnerdtutorials.com/?p=42247#comment-460667 In reply to Benoit Blanchon.

Agree

]]>
By: Oleg https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/#comment-425402 Fri, 31 Jan 2020 09:12:26 +0000 http://randomnerdtutorials.com/?p=42247#comment-425402 Hi Sara! I have an ESP 8266 + BME 280 (server) and a combi board Arduino Mega + ESP 8266, which is connected to a 3.2-inch display. I am trying to start a data transfer scheme on an display. In the combi board, Arduino Mega and ESP 8266 transmit data on Serieal3 (Mega). With the help of your tutorials, I managed to transfer data from the server to the ESP 8266 on the combi board, as well as output to Serial3 data in the following format: HTTP Response code: 200
{
  “Temp2”: 31.13,
  “Hum2”: 6.009766,
  “Pres2”: 733.5735
}
Parse JSON string is now required to display the variables Temp2, Hum2, Pres2. But how to do that? I can’t get Parse JSON string from Serial3. I can’t find the answer anywhere.
And another question: how to reduce the number of decimal places in json? In Serial the data has 1-2 decimal places, and in json it is too much.
Thank you! And thanks again for your work!

]]>