FormatAdapter

Classes > Nimblesite.Reporting.Engine > FormatAdapter

Serializes report execution results to various output formats.

public static class FormatAdapter

Methods

ToJson(ReportExecutionResult)

public static string ToJson(ReportExecutionResult result)

Serializes a report execution result to JSON.

Parameters:

Name Type Description
result ReportExecutionResult The execution result to serialize.

Returns: String - JSON string representation of the result.

ToCsv(DataSourceResult)

public static string ToCsv(DataSourceResult result)

Serializes a report execution result to CSV for a specific data source.

Parameters:

Name Type Description
result DataSourceResult The data source result to serialize.

Returns: String - CSV string representation.