 
   if ( requestedUri.endsWith("/config") )
   {
-    String longstr = "{"
+    String longstr = "[{"
                      " \"name\": \"Philips hue\","
                      " \"zigbeechannel\": 15,"
                      " \"mac\": \"00:17:88:00:00:00\","

   // On the real bridge, the link button on the bridge must have been recently pressed for the command to execute successfully.
   // We try to execute successfully regardless of a button for now.
  {
    String str = "{\"success\":{\"username\": \"" + client + "\"}}";
    HTTP.send(200, "text/plain", str);
    Serial.println(str);
  }

                     " \"signedon\": true,"
                     " \"incoming\": false,"
                     " \"outgoing\": true,"
                     " \"communication\": \"connected\""
                     " }"
                     "}]";
    HTTP.send(200, "text/plain", longstr);
    Serial.println(longstr);
  }
  
  else if (requestedUri.endsWith(client))
  {
    String str = "[{\"success\":{\"username\": \"" + client + "\"}}]";
    HTTP.send(200, "text/plain", str);
    Serial.println(str);
  }
