Interface IJsonSerializer
Interface describing the JsonSerializer used by the REST Client for serialization of API payload.
Namespace: Klarna.Rest.Core.Serialization
Assembly: Klarna.Rest.Core.dll
Syntax
public interface IJsonSerializer
Methods
| Improve this Doc View SourceDeserialize<T>(String)
Should deserialize the json data to object of type T.
Declaration
T Deserialize<T>(string json)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | json | Json data to deserialize |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | Objec Type to deserialize into |
Serialize(Object)
Should serialize the input object to json data
Declaration
string Serialize(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | The object to serialize |
Returns
| Type | Description |
|---|---|
| System.String |