JSON C# Class Generator

This application generates C# classes from sample JSON text.

This is a really useful piece of code for people who like strongly typed languages but have to deal with unstructured JSON data.

It currently supports typed arrays, typed objects, integers, floats, booleans, strings and nullable types.

 

Download: http://jsonclassgenerator.codeplex.com/

json-screenshot

10 comments:

Rutger said...

Great tool, use it a lot!
Thanks!

Anonymous said...

How to addapt this tool to use this others serializers like ServiceStack much faster that Newtonsoft?.

Andrea Martinelli said...

@Anonymous
Currently it only supports deserialization using an internal mechanism. The next version will support serialization too.

Anonymous said...

The best tool ever!

4oresite said...

I started using this simple utility and it is a HUGE time saver! Great work!

X2mohsinali said...

I get an error, "object reference not set to an instance ... "
This happens in the JsonType class.

http://www.stubhub.com/ticketAPI/restSvc/event/2046227

is the link that returns the json. I have verified the Json using json lint. Its fine.

antiufo said...

Fixed.

Shaleen said...

Great tool..is there a way i can invoke it's functionality through command line....would be handy for silent conversion using a script..!

Klemens said...

Hello,
how do I deserialize a json string into these generated classes?
I do not have a constructor on the main class accepting a string.


Thanks
Klemens

antiufo said...

JsonSerializer.Deserialize(json)

Post a Comment

Copyright (c) 2009-2013 Andrea Martinelli