Format json for results page