make sure results are in json.