Class JsonReader
Read model from a JSON file
Assembly: PayrollEngine.Client.Core.dll
Syntax
public static class JsonReader
Methods
FromFileAsync<T>(string)
Read object from JSON file
Declaration
public static Task<T> FromFileAsync<T>(string fileName) where T : class
Parameters
| Type |
Name |
Description |
| string |
fileName |
Name of the file
|
Returns
Type Parameters
FromJson<T>(string)
Read object from JSON string
Declaration
public static T FromJson<T>(string json) where T : class
Parameters
| Type |
Name |
Description |
| string |
json |
Object JSON
|
Returns
Type Parameters