GenerateJson(Config<string>, string) Constructor
The object stored in metadata at the specified key is converted to JSON, which then either replaces the content of each input document or is stored in the specified metadata key.
Namespace
Statiq.Core
Containing Type
GenerateJson

Syntax

public GenerateJson(Config<string> sourceKey, string destinationKey = null)

Parameters

Name Type Description
sourceKey Config<string> The metadata key of 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).