reformat json to work w d3