GenerateJson.

GenerateJson(DocumentConfig, string) Constructor

Summary

The object returned by the specified delegate is converted to JSON, which then either replaces the content of each input document or is stored in the specified metadata key.
Assembly
Wyam.Json.dll
Namespace
Wyam.Json
Containing Type
GenerateJson

Syntax

public GenerateJson(DocumentConfig data, string destinationKey = null)

Parameters

Name Type Description
data DocumentConfig A delegate that returns the object to convert to JSON.
destinationKey string The metadata key where the JSON should be stored (or null to replace the content of each input document).

Return Value

Type Description
void
GitHub