Class JsonController
Json helper.
Inherited Members
Namespace: EduCATS.Helpers.Json
Assembly: EduCATS.dll
Syntax
public static class JsonController
Methods
ConvertObjectToJson(object)
Convert object
to Json string.
Declaration
public static string ConvertObjectToJson(object contentObject)
Parameters
Type | Name | Description |
---|---|---|
object | contentObject | Object to convert. |
Returns
Type | Description |
---|---|
string |
IsJsonValid(string)
Is JSON valid.
Declaration
public static bool IsJsonValid(string json)
Parameters
Type | Name | Description |
---|---|---|
string | json | Json to check. |
Returns
Type | Description |
---|---|
bool | Result. |