我用 PostgreSQL 在 Heroku 上设置了 ServiceStack(按照http://friism.com/running-net-on-heroku)。但是json返回格式错误,这里是json
344
[{"Id":3,"Code":"EUR","Name":"Đồng EUR","RecVersion":3,"RecId":3,"RecCreated":"2013-09-13T07:29:30.7228990","RecCreatedBy":1,"Status":"1","RecModified":"2013-09-13T07:29:30.7228990","RecModifiedBy":1},{"Id":4,"Code":"JPY","Name":"Đồng Yên Nhật","RecVersion":4,"RecId":4,"RecCreated":"2013-09-13T07:29:30.7275190","RecCreatedBy":1,"Status":"1","RecModified":"2013-09-13T07:29:30.7275190","RecModifiedBy":1},{"Id":2,"Code":"USD","Name":"Đồng Đôla Mỹ","RecVersion":2,"RecId":2,"RecCreated":"2013-09-13T07:29:30.7183870","RecCreatedBy":1,"Status":"1","RecModified":"2013-09-13T07:29:30.7183870","RecModifiedBy":1},{"Id":1,"Code":"VND","Name":"Đồng Việt Nam","RecVersion":1,"RecId":1,"RecCreated":"2013-09-13T07:29:30.7121270","RecCreatedBy":1,"Status":"1","RecModified":"2013-09-13T07:29:30.7121270","RecModifiedBy":1}]
0
它包括 344 和 0。
但如果我跟随
https://github.com/kunjee17/ServiceStackHeroku
json 返回没问题 ( http://thawing-shelf-3867.herokuapp.com/Rockstars?format=json )
如何修复它。非常感谢你