| 
				
				
				
				 | 
			
			 | 
			@@ -1,14 +1,5 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			/* | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 * KINGSTAR MEDIA SOLUTIONS Co.,LTD. Copyright c 2005-2013. All rights reserved. | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 * | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 * This source code is the property of KINGSTAR MEDIA SOLUTIONS LTD. It is intended | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 * only for the use of KINGSTAR MEDIA application development. Reengineering, reproduction | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 * arose from modification of the original source, or other redistribution of this source | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 * is not permitted without written permission of the KINGSTAR MEDIA SOLUTIONS LTD. | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			 */ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			package me.chanjar.weixin.common.util.json; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.google.common.collect.Lists; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.google.gson.JsonArray; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.google.gson.JsonElement; | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -16,7 +7,6 @@ import com.google.gson.JsonObject; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import java.util.List; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			public class GsonHelper { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  public static boolean isNull(JsonElement element) { | 
		
		
	
	
		
			
				| 
				
					
				
				
					
				
				
				 | 
			
			 | 
			@@ -95,7 +85,7 @@ public class GsonHelper { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  public static boolean getAsPrimitiveBool(JsonElement element) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    Boolean r = getAsBoolean(element); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    return r != null && r.booleanValue(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    return r != null && r; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  public static Double getAsDouble(JsonElement element) { | 
		
		
	
	
		
			
				| 
				
					
				
				
					
				
				
				 | 
			
			 | 
			@@ -129,6 +119,7 @@ public class GsonHelper { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    return result.toArray(new Integer[0]); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  public static String[] getStringArray(JsonObject o, String string) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    JsonArray jsonArray = getAsJsonArray(o.getAsJsonArray(string)); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if (jsonArray == null) { | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |