format a python dictionary object which describe a graph into json format used by JavaScript InfoVis Toolkit(thejit.org)