I am trying to find a library to parse JSON on C# on Windows Mobile (working with Visual Studio 2005). The libraries that I have found that allow me to parse JSON in C# (litjson and Jayrock) don't work on Windows Mobile, they require classes that are not present in the .NET compact framework. Is there any library that I have overlooked? Or is there another easy way to parse JSON given these circumstances?
Json.NET supports the .NET 3.5 compact framework.
Have you looked at what the "missing" classes actually have to do for the existing libraries? If they're reasonably simple to implement yourself, that would be my first suggestion - then contribute the results back to those projects.
look here- several C# json libraries to pick from. also, "manually" parsing JSON from string is not all that difficult.
来源:https://stackoverflow.com/questions/183473/is-there-a-library-to-read-json-in-c-sharp-on-windows-mobile