程序包 cn.gybyt.util

类 FastJsonUtil

java.lang.Object
cn.gybyt.util.FastJsonUtil

public class FastJsonUtil extends Object
fastjson工具类
  • 构造器详细资料

    • FastJsonUtil

      public FastJsonUtil()
  • 方法详细资料

    • toJson

      public static String toJson(Object o)
      序列化
      参数:
      o -
      返回:
    • toObject

      public static <T> T toObject(String json, Class<T> type)
      反序列化
      参数:
      json -
      type -
      返回:
    • toObject

      public static <T> T toObject(String json, String className)
      反序列化
      参数:
      json -
      className -
      返回: