make sure we are passing strings to json.loads