duanguanya3052 2015-01-27 16:56
浏览 541

在beego中返回JSON对象

I am using beego (golang framework) and I am trying to use jquery ajax to update my web pages after the go function finishes. However I am stocked at returning JSON object so that the jquery could handle it in its success function. Is there any way to return JSON in golang or beego and how? Thanks.

  • 写回答

2条回答 默认 最新

  • dsgrgaz321973284 2015-01-28 03:41
    关注

    Beego controller has a ServeJson() func, have a look at it.

    评论

报告相同问题?