Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By martinayotte
#45468 Here is some untested snippet of code derived from your own code :

Code: Select all  // Read all the lines of the reply from server and print them to Serial
  String body = "";
  bool headerComplete = false;
  while(client.available()){
    String line = client.readStringUntil('\r');
    if (headerComplete) {
      body += line;
    }
    if (line.length() < 2) { // line seems to be empty, although it can have a single \n
      headerComplete = true;
    }
  }
  Serial.print(body); // this should print only the body containing the JSON