Skip to content

Any way of getting rid of object references and simply repeat? The YAML is for humans to read. #882

Answered by webJose
webJose asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, for anyone else looking for these:

        ISerializer serializer = new SerializerBuilder()
            .ConfigureDefaultValuesHandling(DefaultValuesHandling.OmitEmptyCollections) // This eliminates empty collections.
            .DisableAliases() // This eliminates the */&o references
            .WithNamingConvention(CamelCaseNamingConvention.Instance)
            .Build();
```

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by webJose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant