我正在学习Alexa flash简报技巧,需要从URL返回json。我的homecontroller中有以下内容
[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"}
I get“错误:分析提要时出错。请确保提要是有效的JSON或RSS。”当amazon尝试验证源代码时。我是个新手,请帮忙。