Json.

Json(string, bool) Constructor

Summary

The content of the input document is parsed as JSON. A dynamic object representing the JSON content is set as the value for the given metadata key. If flatten is true, all root-level items are also added to the input document's metadata.
Assembly
Wyam.Json.dll
Namespace
Wyam.Json
Containing Type
Json

Syntax

public Json(string key, bool flatten = false)

Parameters

Name Type Description
key string The metadata key in which to set the dynamic JSON object.
flatten bool If set to true, all root-level items are also added to the input document's metadata.

Return Value

Type Description
void
GitHub