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.
- Namespace
- Statiq
.Core - Containing Type
- GenerateJson
Syntax
public GenerateJson(Config<object> data, string destinationKey = null)
Parameters
| Name | Type | Description |
|---|---|---|
| data | Config |
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). |