This project is read-only.
This is the JsonToStaticTypeGenerator project that gives the possibility to generate c# classes out of Json data. So you can use static typing to access your Json data.

JsonToStaticTypeConverter.jpg

After genearting the Addresse class it can be used with the JsonConverter<MainTest.Addresse> class.

var jsonConverter = new JsonConverter<MainTest.Addresse>();
MainTest.Addresse address = jsonConverter.Deserialize(
"{ 'street' : 'Gürtel', 'number' : 23, 'city' : 'Vienna' }");
var street = address.street;
var number = address.number;
var city = address.city;

JsonToStaticTypeConverterResult.jpg

This project is currently in alpha state.
For further information and some examples please look at my blog.
http://netmatze.wordpress.com/2012/10/02/using-jsontostatictypeconverter-part-1-introduction/

Last edited Oct 2, 2012 at 7:44 PM by netmatze, version 10