com.tinypass.client.common.JsonParser Maven / Gradle / Ivy
package com.tinypass.client.common;
import java.io.IOException;
public abstract class JsonParser {
private static JacksonJsonParser INSTANCE = new JacksonJsonParser();
public static JsonParser getInstance() {
return INSTANCE;
}
public abstract T deserialize(String json, Class> cls) throws IOException;
public abstract T deserialize(String json, String containerType, Class> cls) throws ApiException;
public abstract String serialize(Object obj) throws ApiException;
}