我正在制作Alexa flash简报技巧,需要从我的URL返回json。我的家用控制器中有以下内容
[HttpGet]
public ActionResult Feed(string id)
{
Helper.TodaysWord help = new Helper.TodaysWord();
return Content(help.jsonBuilder(id), "application/json");
}
转到URL给我以下json。
{"uid":"7a257633-4032-4593-a1be-a354a395aced","updateDate":"2/28/2018 12:00:00 AM","titleText":"Today's Japanese","mainText":"Test, put word and definition here","redirectionUrl":"HTTP://www.LostDutchmanSoftware.com"}
我收到“错误:解析Feed时出错。请确保Feed是有效的JSON或RSS。”当亚马逊尝试验证来源时。我真的很新,请帮忙。