reformat json output to spit out an array of dicts