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

Json.NET 3.5 on .NET 2.0

Jul 29, 2009 at 2:57 PM
Edited Jul 29, 2009 at 3:01 PM


I don't want to ask if the latest Json.NET supports .NET 2.0 :)

First, thanks for making this great library free!

I was looking for a JSON library for .Net CF 2.0 and came across this one here. Unfortunally CF is only supported in JSON.NET 3.5 betas and these only work with .Net 3.5 so i was stuck first.

Then i also came across this great library: which enables .Net 2.0 to use Linq-to-objects (and Extension classes and some missing generic delegates like Action). I was able to port the 3.5b3 and now 3.5b4 to CF 2.0 in a short time and they work perfectly (with some additional fiddling even the unit tests).

Probably you even might consider to supply a .Net 2.0 compatible variant yourself using LinqBridge (which is under a MIT license). You only need an additional project which targets .Net 2.0 and LinqBridge and an additional preprocessor directive (i used NET20) to disable some chunks of code at almost the same places as "PocketPC" and some more where 3.5 specific thingies like TimeZimeOffset or DateTimeOffset are used.




Jul 30, 2009 at 1:21 AM

Thanks. I'll check it out.

Aug 5, 2009 at 9:03 AM

Seems you checked it out :). Thanks!

(Now i don't have to patch it myself)