edit Json file in the required format to be able to see using d3js