People who code: we want your input. Take the Survey

Questions tagged [json]

The tag has no usage guidance.

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
414 views

Reading JSON from Arduino over serial in python and writing to a JSON file on computer

I'm fairly new to Arduino so I used a sample code before integrating this into my main code. I'm printing my value in a JSON format over serial. My Arduino outputs this and the python receives this ...
2
votes
0answers
2k views

Convert String data To char Array in Arduino

I'm able to get json data and storing in String object, now i want to convert string into Char Array for parsing json data I'm tried with this code, but it is not responding String data = http....
1
vote
0answers
42 views

How to set maximal execution time of operation

I'm JSON deserializing output from ESP8266 in my Arduino UNO, but when it fails (for some reason every time after it deserializes successfully) the program lags for few seconds and I don't want that ...
1
vote
0answers
13 views

Changing the order of GUI-elements inside Arduino ESP-Dash-library

I'm trying to add a new item "index" to GUI-elements that are created by using ArduinoJSON and the Vue.js-framework inside the ESP-Dash-library. The library creates GUI-elements like buttons,...
1
vote
0answers
177 views

Edit JSON File on SD Card

I am currently Working on a project, where I save values in a JSON File on an SD Card. The JSON looks something like this: { "ID1":{[[starttime, endtime], [starttime, endtime], [....
1
vote
0answers
2k views

How to send JSON on a http POST request using an ESP8266?

I'm working on a project aimed on sending alerts via SMS. I signed up for a SMS service that works via HTTP requests (REST standard). I need, then, to send data as JSON, so that their server processes ...
1
vote
0answers
195 views

Can't print out a field with ArduinoJSON

I'm trying to create a command interpreter. Allowed commands are stored in a JSON document inside SPIFFS. If I send an allowed command, it doesn't print the field associated with that value (end of ...
1
vote
0answers
39 views

About split string

Sorry my English is poor. I use nodemcu to get a json data. By this String alldata = client.readString(); But it turn this: HTTP/1.1 200 OK Server: nginx Date: Sat, 10 Aug 2019 04:53:16 GMT ...
1
vote
0answers
671 views

How to get Json String from URL?

I want to get JSON string from a URL which goes like this https://maps.googleapis.com/maps/api/directions/json?origin=7649+Paseo+Santa+Cruz&destination=SJSU&key=MY_API_KEY and here is my ...
1
vote
0answers
70 views

Reducing json upload time

I'm using an ESP32 WROOM board to capture some data in the field and send it over using arduino json. However, the complete process of sending and receiving confirmation takes up around 12 seconds and ...
1
vote
0answers
399 views

Can't parse large json file

For a project I've to parse a big json file. Unfortunately it does not work as expected. Here is the json file: { "data1": "...
1
vote
0answers
144 views

SerializeJson not working when using softserial

IDE:1.8.8 Board:Arduino UNO When I use the code below, I get result of print like this. { "result": [ { "ID": "01", "Value": [ "2", "1", "13" ] } ] } But when I use SoftwareSerial and in the setup ...
1
vote
0answers
334 views

append a String on ArduinoJson Object value

I've a json string request coming from server and I convert it into json object StaticJsonBuffer<500> jsonStaticBuffer; JsonObject& root = jsonStaticBuffer.parseObject(String(msg)); ...
0
votes
0answers
47 views

JSON Parser fails because number of bytes is being sent

Sorry I am new with this. I am trying to read a JSON response from my website using an ESP8266, but it keeps failing. I am using the following code: WiFiClientSecure httpsClient; //Declare object ...
0
votes
0answers
76 views

Receiving serializejson output string as “{}” in ArduinoJson

I am using the ArduinoJson library version 6.17.12 The output received when I use serializeJson(doc,test_string) is {}. I have read in the documentation that it is due to a memory leak and I would ...
0
votes
0answers
136 views

Get data from website with ESP8266 AT commands

I have a big problem. When I use the following code, at the time of reply (+IPD) I do not receive the full answer along with the text in the file or text in echo (php file) or text in json file. How ...
0
votes
1answer
2k views

Serial communication from Arduino to ESP8266 NodeMCU works, but from NodeMCU to Arduino isn't working

My circuit connection is like: (I am following this tutorial) Code uploaded to Arduino: #include <SoftwareSerial.h> #include <ArduinoJson.h> SoftwareSerial s(5,6); void setup() { s....
0
votes
0answers
82 views

Losing value of variable

I am making a project involving the AutoConnect, ArduinoJSOn and LedControl libraries to fetch some values from an endpoint. Basically what I do is connect to the internet, fetch the values from a ...
0
votes
0answers
426 views

JSON woes: parsing JSON with esp8266, can this be more elegant?

A few years back I wrote a program that pulled bus time data from the NYC MTA's "bus time" API and posted it on a wifi-connected OLED on my wall. All was well for a few years, but they changed the ...
-1
votes
1answer
37 views

ArduinoJson is not adding string to JsonObject. ArduinoJson broken?

So I've got this code String GetTimeString(){ strftime(dateArray, 100, dateFormat, getTimeInfo()); dateString = String(dateArray); Serial.println(dateString); return ...