package com.xuqm.base.common; import java.util.List; /** * Created by xuqm on 2016/6/3. */ public abstract class Json { private static Json json; Json() { } public static Json get() { if (json == null) { json = new GsonImplHelp(); } return json; } public abstract String toJson(Object src); public abstract T toObject(String json, Class claxx); public abstract T toObject(byte[] bytes, Class claxx); public abstract List toList(String json, Class claxx); }