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