This project has moved and is read-only. For the latest updates, please go here.

Is Json.NET 2.0 backward compatible with .NET 2.0 runtime?

May 29, 2008 at 5:16 PM
I am currently using 1.3.1 in an environment that doesn't have .NET 3.0 or 3.5 installed
Do you know if it will still run even with the new LINQ support added?
May 30, 2008 at 2:07 PM
Json.NET 1.3.1 should be compatible with .NET 2.0 and above.
Json.NET 2.0 should be compatible with .NET 3.5 and above.
Aug 5, 2008 at 9:27 PM
Json.NET 2.0 depends only on System.Core in 3.5. And the only two things used in System.Core, so far as I can see, are LINQ to Objects and System.TimeZoneInfo.
There is a .NET 2.0-compatible implementation of LINQ to Objects -- LINQBridge. So I replaced System.Core reference with LINQBridge, TimeZoneInfo.Local with TimeZone.Current,
and set .NET 2.0 as the target framework. I left 3.5 as the target framework for tests, since they need System.ServiceModel.Web and System.Web.Extensions.
Well, it builds and the tests pass. Removed things dependent on 3.5 in tests and changed their target to 3.0 -- same result.
I have not tried using it yet (but plan to soon), but I see no reason it should not work.