parse json objects to get details of spanning tree
dynamic div creation based on the number of blocks