Allows you to specify metadata keys for each input document that should be serialized as properties in a JSON object.
- Namespace
- Statiq
.Core - Containing Type
- GenerateJson
Syntax
public GenerateJson(Config<IEnumerable<string>> keys, string destinationKey = null)
Parameters
Name | Type | Description |
---|---|---|
keys | Config |
The metadata keys to serialize as properties. |
destinationKey | string | The metadata key where the JSON should be stored (or null
to replace the content of each input document). |