Show / Hide Table of Contents

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 Source

Deserialize<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

Object Type to deserialize into

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Copyright (c) 2005-2019 Klarna Bank AB (publ). All rights reserved.