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)
,它可能会解决您的问题。