   /*
   // Delete all JSON objectss
   aJson.deleteItem(poStatus);
-  aJson.deleteItem(poItems);
+  aJson.deleteItem(poPin13);
   aJson.deleteItem(poItem);
   aJson.deleteItem(poPins);
   aJson.deleteItem(poPin); 

  aJson.addItemToObject(msg, "analog", analog);
 */
  
  aJsonObject* poStatus = aJson.createObject();
  aJsonObject* poItems = aJson.createObject();
  aJsonObject* poItem = aJson.createObject();
  aJsonObject* poPins = aJson.createObject();
  aJsonObject* poPin = aJson.createObject();
  aJsonObject* poConnections = aJson.createObject();
  
  // Create STATUS
  poStatus = aJson.createItem("OK");
//  aJson.addItemToObject(poJsonBoardState,"status",poStatus);  
 
  // Create PINS
  //aJson.addItemToObject(poItem, "analog", poItems);
  //aJson.addItemToObject(poPins,"13",poPins);

  aJson.addItemToObject(poItems,"label", aJson.createItem("None") );
  aJson.addItemToObject(poItems,"is_analog", aJson.createFalse() );
  aJson.addItemToObject(poItems,"is_input", aJson.createFalse() );
  aJson.addItemToObject(poItems,"value", aJson.createItem(0.0) );
  int iaPinConnects[10];
  aJson.addItemToObject(poItems,"connections", aJson.createIntArray(iaPinConnects,0) );
  aJson.addItemToObject(poPins,"13",poItems);



//  poItem = aJson.createItem("Value13");

void loop()
{

   if (millis() - last_print > 2000) {

    //aJsonObject *msg = aJson.parse("{\"status\":OK,\"pins\":{\"13\":{\"label\":\"LED ON 13\",\"is_analog\":\"false\",\"is_input\":\"false\",\"value\":\"0.0\",\"connections\":[]}},\"connections\":[]}\"");
//    aJsonObject *msg = aJson.parse(g_acMessage);
