Changed results to json