     ////// NEW JSON CODE /////
     updateBoardState();
     aJsonObject *msg = getJsonBoardState();
+     
+    aJson.print(msg, &serial_stream);
+    Serial.println("");
+    aJson.deleteItem(msg);
+    
     /*
     // Creating buffer for WebSockets
      int n;

int sensor1 = 0;
int sensor1Pin = A0;    // select the input pin for the potentiometer

// HW declaration
#define TOTAL_NUM_Dx 14 
#define TOTAL_NUM_Px 12

//char g_acMessage[] = "{\"status\":OK,\"pins\":{\"13\":{\"label\":\"LED ON 13\",\"is_analog\":\"false\",\"is_input\":\"false\",\"value\":\"0.0\",\"connections\":[]}},\"connections\":[]}\"";

unsigned long last_print = 0;
//aJsonStream serial_stream(&Serial);


/* Generate message like: { "analog": [0, 200, 400, 600, 800, 1000] } */
