lbv/litjson — pull request #5 by nickgravelyn (2013-05-22 17:33:50+00:00)
Title: VS2010 projects and other fixes

Great library and glad to see it up on Github now.

To make it easier for Windows devs, I've added VS2010 projects for both the library and the test suite. I've also made a few improvements to the core library:

- Pretty print now uses the correct platform newline string so the tests all pass properly on Windows
- JsonMapper uses reflection to get a parameterless constructor for objects which means you can now deserialize objects that don't expose a public parameterless constructor. This is useful for objects that, in code, require constructor parameters but need to also be deserialized from JSON. You can simply add a private parameterless constructor and JsonMapper will use that.
- JsonMapper now supports include and ignore attributes for properties and fields. This lets you ignore public members or include private members, giving much more freedom to how types are designed and used in code.

I added two new tests for the two new features I mentioned and ensured all the tests pass on Windows.