Package 

Class BridgeJsonHelper

    • Method Summary

      Modifier and Type Method Description
      static <T> T parseJson2Object(Class<T> clazz, String json) 接地json字符串到实例对象
      static String object2JsonString(Object value) 可以解析自定义的对象、map、List、数组、基本数据类型、String
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseJson2Object

         static <T> T parseJson2Object(Class<T> clazz, String json)

        接地json字符串到实例对象

        Parameters:
        clazz - 和JSON对应的类的Class,必须拥有setXxx()函数,其中xxx为属性
        json - 被解析的JSON字符串
      • object2JsonString

         static String object2JsonString(Object value)

        可以解析自定义的对象、map、List、数组、基本数据类型、String