- Namespace
- Statiq
.Common - Containing Type
- IFileExtensions
Syntax
public static Task SerializeJsonAsync<TValue>(this IFile file, TValue value, JsonSerializerOptions options = null, CancellationToken cancellationToken = default(CancellationToken))
Type Parameters
Name | Description |
---|---|
TValue |
Parameters
Name | Type | Description |
---|---|---|
file | IFile | |
value | TValue | |
options | Json |
|
cancellationToken | CancellationToken |
Return Value
Type | Description |
---|---|
Task |