Guest
#7240877
Hello, I have a Json string which looks like this [[2,3],[5,6]] I want to read it in an array and add one pair [7,8]. End result should be this [[2,3],[5,6],[7,8]] How can I do this?
Manipulation of json
Guest
#7240877
Hello, I have a Json string which looks like this [[2,3],[5,6]] I want to read it in an array and add one pair [7,8]. End result should be this [[2,3],[5,6],[7,8]] How can I do this?
Guest
#7240882
Test schrieb: > How can I do this? With software.
Guest
#7240893
Sorry forget the information...it's in esp8266 code I need this in an Arduino code..
Guest
#7240907
Use string functions: https://www.arduino.cc/reference/en/language/variables/data-types/stringobject/
Guest
#7240910
Hannes J. schrieb: > https://stedolan.github.io/jq/manual/ I guess that won't run on an esp8266. But anyway, here is an example for sh:
Guest
#7240917
Test schrieb: > I want to read it in an array and add one pair [7,8]. You can write a simple JSON parser that does just that. Or you use a general JSON parsing library and construct your data structure with it. I guess adding the additional pair does not require any JSON business. KR, Sebastian with ArduinoJson Lib: https://arduinojson.org/
Guest
#7241012
Hello i tried it
But the output is 0. WHat is wrong??
https://wokwi.com/projects/347340486773572179 ReplyPlease log in before posting. |