This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Json.
Summary
Serializes an object to a pretty JSON string.
Syntax
public static string SerializeJsonPretty<T>(this ICakeContext context, 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. |
instance |
T |
The object to serialize. |
Return Value
Type |
Description |
string |
The JSON string. |