Class JsonExtensions
Json extensions
Inherited Members
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class JsonExtensions
Methods
View SourceGetSystemType(JsonValueKind)
Gets the type of the system
Declaration
public static Type GetSystemType(this JsonValueKind valueKind)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonValueKind | valueKind |
Returns
| Type | Description |
|---|---|
| Type | The system type |
GetSystemType(JsonValueKind, object)
Gets the type of the system
Declaration
public static Type GetSystemType(this JsonValueKind valueKind, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonValueKind | valueKind | |
| object | value | The value, used to determine the numeric type |
Returns
| Type | Description |
|---|---|
| Type | The system type |
GetValue(JsonElement)
Get the json element value
Declaration
public static object GetValue(this JsonElement jsonElement)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonElement | jsonElement | The json element |
Returns
| Type | Description |
|---|---|
| object | The json element value |