// 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
Moderator: igrr