GenerateJson.

GenerateJson(string, string) Constructor

Summary

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.
Assembly
Wyam.Json.dll
Namespace
Wyam.Json
Containing Type
GenerateJson

Syntax

public GenerateJson(string sourceKey, string destinationKey = null)

Parameters

Name Type Description
sourceKey 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).

Return Value

Type Description
void
GitHub