JamesNK/Newtonsoft.Json — pull request #377 by BrandonLWhite (2014-09-13 23:07:50+00:00)
Title: Implemented support for passing arguments to parameterized JsonConverter constructors

*This is a follow-up to [PR275](https://github.com/JamesNK/Newtonsoft.Json/pull/375) with an alternate implementation suggested by @JamesNK*

This PR adds the capability of passing arguments to parameterized JsonConverter constructors. This opens up possibilities for configuring custom JsonConverters.

- I've added a `params` list to `JsonConverterAttribute`. For example:
```
[JsonConverter(typeof(RoundingJsonConverter), 4)]
```

- I also added `ItemConverterParameters` property to `JsonPropertyAttribute` and `JsonContainerAttribute`. For example:
```
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
```

@JamesNK I took your suggestion and ran with it. I had also failed to consider ItemConverters in my prior PR -- they are handled now. You may notice that the use of ItemConverter made my RoundingJsonConverter much simpler.

Again, please let me know if you require any further changes. I think it would be awesome if this could get into Json.NET!