src/main/java/com/rockagen/commons/util/JsonUtil.java
public static <T> T toBean(File jsonFile, TypeReference<T> valueTypeRef) {
		if (valueTypeRef == null || jsonFile == null)
			return null;
		return toBean(new MyJsonParser(jsonFile), valueTypeRef);

	}
public static <T> T toBean(File jsonFile, TypeReference<T> valueTypeRef) {
		if (valueTypeRef == null || jsonFile == null)
			return null;
		return toBean(new MyJsonParser(jsonFile), valueTypeRef);

	}
public static < T > T toBean ( File jsonFile , TypeReference < T > valueTypeRef ) { if ( valueTypeRef == null || jsonFile == null ) return null ; return toBean ( new MyJsonParser ( jsonFile ) , valueTypeRef ) ; }
Json string to java bean <br>
<p>
List,Array,Map
</p>
<pre>
clazz= new TypeReference&lt;List&lt;MyBean&gt;&gt;(){};

e.g:
toBean(jsonFile,new TypeReference&lt;List&lt;MyBean&gt;&gt;(){})

toBean(jsonFile, MyBean[])

toBean(jsonFile, new TypeReference&lt;Map&lt;String, Map&lt;String, MyBean&gt;&gt;(){})
</pre>

@param jsonFile josn file
@param valueTypeRef value type ref
@param <T> t
@return bean
Json string to java bean <br > <p > List Array Map < / p > <pre > clazz = new TypeReference&lt ; List&lt ; MyBean&gt ; &gt ; () {} ;