GemBox Support Forum

Load data from custom json to MailMerge.Execute(...)

There are a way for loading data from a json with multiple levels and arrays? Seems mail.merge only accept <Dictionary<string, string>>


On the following link, under the “Mail merge data sources” section, you can find a list of supported data source types:

Try to serialize your JSON into an object and pass that as a data source.
For such custom objects, the reflection will be used to retrieve property/column values based on their names.

I hope this helps.