Deserialization problem with DataContractJsonSerializer

前端 未结 2 1781
失恋的感觉
失恋的感觉 2020-12-01 12:34

I\'ve got the following piece of JSON:

[{
    \"name\": \"numToRetrieve\",
    \"value\": \"3\",
    \"label\": \"Number of items to retrieve:\",
    \"items         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 13:08

    http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/071f73bb-e141-4a68-ae61-05635382934f

    Check this article out - it solved my problem almost perfectly. I had to change their object[] Type to a string, but i'm only using strings:string type Key/Value pairs, so no problems there.

提交回复
热议问题