Summary
Parses JSON content for each input document and stores the result in it's metadata.
- Assembly
- Wyam
.Json .dll - Namespace
- Wyam
.Json - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["Json"]
class Type type-node
Syntax
public class Json : IModule
Remarks
Parses the content for each input document and then stores a dynamic object
representing the JSON in metadata with the specified key. If no key is specified,
then the dynamic object is not added. You can also flatten the JSON to add top-level items directly
to the document metadata.
Constructors
Name | Summary |
---|---|
Json |
The content of the input document is parsed as JSON. All root-level items are added to the input document's metadata. This is best for simple key-value JSON documents. |
Json |
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. |
Methods
Name | Value | Summary |
---|---|---|
Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|