fixed json response, added .to_json to nyt