me.chanjar.weixin.common.util.json

## 类 GsonHelper

- java.lang.Object
- - me.chanjar.weixin.common.util.json.GsonHelper

    public class GsonHelper
    extends Object

### 构造器概要

构造器
构造器和说明
`GsonHelper()`

### 方法概要

方法
`static Boolean` `getAsBoolean(com.google.gson.JsonElement element)`
`static Double` `getAsDouble(com.google.gson.JsonElement element)`
`static Float` `getAsFloat(com.google.gson.JsonElement element)`
`static Integer` `getAsInteger(com.google.gson.JsonElement element)`
`static com.google.gson.JsonArray` `getAsJsonArray(com.google.gson.JsonElement element)`
`static Long` `getAsLong(com.google.gson.JsonElement element)`
`static boolean` `getAsPrimitiveBool(com.google.gson.JsonElement element)`
`static double` `getAsPrimitiveDouble(com.google.gson.JsonElement element)`
`static float` `getAsPrimitiveFloat(com.google.gson.JsonElement element)`
`static int` `getAsPrimitiveInt(com.google.gson.JsonElement element)`
`static long` `getAsPrimitiveLong(com.google.gson.JsonElement element)`
`static String` `getAsString(com.google.gson.JsonElement element)`
`static Boolean` `getBoolean(com.google.gson.JsonObject json, String property)`
`static Double` `getDouble(com.google.gson.JsonObject json, String property)`
`static Float` `getFloat(com.google.gson.JsonObject json, String property)`
`static Integer[]` `getIntArray(com.google.gson.JsonObject o, String string)`
`static Integer` `getInteger(com.google.gson.JsonObject json, String property)`
`static Long` `getLong(com.google.gson.JsonObject json, String property)`
`static double` `getPrimitiveDouble(com.google.gson.JsonObject json, String property)`
`static float` `getPrimitiveFloat(com.google.gson.JsonObject json, String property)`
`static int` `getPrimitiveInteger(com.google.gson.JsonObject json, String property)`
`static long` `getPrimitiveLong(com.google.gson.JsonObject json, String property)`
`static String` `getString(com.google.gson.JsonObject json, String property)`
`static boolean` `isNotNull(com.google.gson.JsonElement element)`
`static boolean` `isNull(com.google.gson.JsonElement element)`

### 从类继承的方法 java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### 构造器详细资料

#### GsonHelper

    public GsonHelper()

### 方法详细资料

#### isNull

    public static boolean isNull(com.google.gson.JsonElement element)

#### isNotNull

    public static boolean isNotNull(com.google.gson.JsonElement element)

#### getLong

    public static Long getLong(com.google.gson.JsonObject json,
               String property)

#### getPrimitiveLong

    public static long getPrimitiveLong(com.google.gson.JsonObject json,
                        String property)

#### getInteger

    public static Integer getInteger(com.google.gson.JsonObject json,
                     String property)

#### getPrimitiveInteger

    public static int getPrimitiveInteger(com.google.gson.JsonObject json,
                          String property)

#### getDouble

    public static Double getDouble(com.google.gson.JsonObject json,
                   String property)

#### getPrimitiveDouble

    public static double getPrimitiveDouble(com.google.gson.JsonObject json,
                            String property)

#### getFloat

    public static Float getFloat(com.google.gson.JsonObject json,
                 String property)

#### getPrimitiveFloat

    public static float getPrimitiveFloat(com.google.gson.JsonObject json,
                          String property)

#### getBoolean

    public static Boolean getBoolean(com.google.gson.JsonObject json,
                     String property)

#### getString

    public static String getString(com.google.gson.JsonObject json,
                   String property)

#### getAsString

    public static String getAsString(com.google.gson.JsonElement element)

#### getAsLong

    public static Long getAsLong(com.google.gson.JsonElement element)

#### getAsPrimitiveLong

    public static long getAsPrimitiveLong(com.google.gson.JsonElement element)

#### getAsInteger

    public static Integer getAsInteger(com.google.gson.JsonElement element)

#### getAsPrimitiveInt

    public static int getAsPrimitiveInt(com.google.gson.JsonElement element)

#### getAsBoolean

    public static Boolean getAsBoolean(com.google.gson.JsonElement element)

#### getAsPrimitiveBool

    public static boolean getAsPrimitiveBool(com.google.gson.JsonElement element)

#### getAsDouble

    public static Double getAsDouble(com.google.gson.JsonElement element)

#### getAsPrimitiveDouble

    public static double getAsPrimitiveDouble(com.google.gson.JsonElement element)

#### getAsFloat

    public static Float getAsFloat(com.google.gson.JsonElement element)

#### getAsPrimitiveFloat

    public static float getAsPrimitiveFloat(com.google.gson.JsonElement element)

#### getIntArray

    public static Integer[] getIntArray(com.google.gson.JsonObject o,
                        String string)

#### getAsJsonArray

    public static com.google.gson.JsonArray getAsJsonArray(com.google.gson.JsonElement element)