Skip to content

Feature Request: Custom serializer option to handle Dynamic Template Data serialization #985

Open
@shervinw

Description

@shervinw

example:

var msg = new SendGridMessage();
var serializerSettings = new Newtonsoft.Json.JsonSerializerSettings
                {
                    NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
                    ContractResolver = new CamelCasePropertyNamesContractResolver()
                };
msg.SetTemplateData(dynamicTemplateData, serializerSettings);

Current options are far too restrictive, I can only see that decorating properties with JsonProperty has any type of effect.

Also, I'm sure this test is simply testing Newtonsofts lib.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions