Using ethernet deserialize json

hai , need to get json from my server using http throug ethernet

https://www.arduino.cc/en/Tutorial/LibraryExamples/WebClient

 // Make a HTTP request:
    client.println("GET /");
    client.println("Host: 54.202.0.170");
    client.println("Connection: close");
    client.println();

if i use this i can only able to read the json. can't deserialize it.

any sugestion for geting data through ethernet like http.get()

have a look at https://arduinojson.org

You forgot to put the protocol version in the GET header:
client.println("GET / HTTP/1.1");

Don't forget to read the headers before trying to parse the JSON document in the HTML body.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.