simplifying the results in json