JsonAliases.

SerializeJsonToPrettyFile<T>(ICakeContext, FilePath, T) Method

Summary

Serializes an object to a pretty JSON file.
Assembly
Cake.Json.dll
Namespace
Cake.Json
Containing Type
JsonAliases

Syntax

public static void SerializeJsonToPrettyFile<T>(this ICakeContext context, FilePath filename, T instance)

Attributes

Type Description
CakeMethodAliasAttribute

Type Parameters

Name Description
T The type of object to serialize.

Parameters

Name Type Description
context ICakeContext The context.
filename FilePath The filename to serialize to.
instance T The object to serialize.

Return Value

Type Description
void