Extra quotes in ServiceStack POST

I am using ServiceStack 3.9 with AngularJS. I am trying to do a POST like this:

$http.post('web.ashx/addUser', data)

"data" is a correct JSON object.

However, when ServiceStack POST is executed, I get double quotes in every string property of my DTO object:

""John""

instead of

"John"

I have tried to configure ServiceStack JSON serializer, but I am not able to fix it.

Any ideas of what is happening?

Thanks.


在获得发布数据后,尝试在服务器端使用JsonObject.Parse(objectToParse) ,它可能会解决您的问题。

链接地址: http://www.djcxy.com/p/68714.html

上一篇: ServiceStack:通过POST发送JSON字符串,而不是DTO

下一篇: ServiceStack POST中的额外引号