This project has moved. For the latest updates, please go here.

JSON.NET on WP7 dont work

Feb 18, 2011 at 3:25 AM



Im making a new app for WP7 and i try parse JSON to my objects, the dll compiled that your offers not work, so i get the source code and i added it in my solution.


The Serialize work but not so the Deserialize, please anyone can give me a dll than work on WP7. my code is here.

public class ResponseHeader  

        public String session { get; set; }        

public List<Alerts> alerts { get; set; }


        public class Response<T>    {        
        public ResponseHeader header { get; private set; }      

public T result { get; private set; }


Response<T> responseObject = Deserialize<Response<T>>(responseString);

When i see this code in the debugger the responseString contains really the JSON string with good format, but the responseObject dont contains the values, for example session in the debugger say "Could not evaluate expression".

Thanks in advanced.

Feb 18, 2011 at 3:38 AM

Hi, i resolved this issue removing the private keyword in header and result, and all is OK.

Now work with the source code of JSON.NET in my solution, but the dll in the binaries folder dont work yet.

 best regarts