Extended JsonDeserializer to handle Json.NET's JsonPropertyAttribute - #138
Extended JsonDeserializer to handle Json.NET's JsonPropertyAttribute#138aroder wants to merge 2 commits into
Conversation
…sonPropertyAttribute on model classes
|
Thanks for the request. The default serializers are opinionated and will never support attributes. JSON.NET may not always be used under the covers so I don't want any hard dependencies on it. I'm will to add a JsonNetDeserializer that works more like JSON.NET does if someone wants to contribute that. |
|
I wondered about the hard dependency on JSON.NET. Thanks for the response. Adam Roderick On Wed, Jun 1, 2011 at 1:53 PM, johnsheehan <
|
Hey John. Json.NET includes the ability to map JSON properties to .NET properties with different names via an attribute called JsonPropertyAttribute. I wrote a test and extended JsonDeserializer.
Let me know if you need more info