TXTextControl.DocumentServer.MailMerge.MergeJsonData Method

Merges data given as a JSON string into a document template. The JSON string has to contain either a single object or an array of equally structured objects. Analyzes and uses the given object(s) as merge data in the same way as the method MergeObjects.

Introduced: 24.0.

MergeJsonData(String, Boolean)

mixed

[C#]
public void MergeJsonData(string json, bool append);
[Visual Basic]
Public Sub MergeJsonData(ByVal json As String, ByVal append As Boolean)
Parameter Description
json

The JSON string containing the merge data.

append

Specifies whether the single documents should be merged into one document or split into separate documents.

MergeJsonData(String)

Does the same as MergeJsonData with the parameter “append” set to true.

[C#]
public void MergeJsonData(string json);
[Visual Basic]
Public Sub MergeJsonData(ByVal json As String)
Parameter Description
json

The JSON string containing the merge data.

See Also