JSONAPIdotNET / JSONAPI.NET

MIT License
102 stars 23 forks source link

support serializing complex attributes to types other than string #105

Closed csantero closed 8 years ago

csantero commented 8 years ago

Now you can do

public class MyDto
{
    [SerializeAsComplex]
    public SomeOtherClass MyOtherClass {get; set; }
}

public class SomeOtherClass
{
    [JsonProperty("foo-bar")]
    public string FooBar {get; set;}
}