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

	}
public static <T> T toBean(URL jsonURL, TypeReference<T> valueTypeRef) {
		if (valueTypeRef == null || jsonURL == null)
			return null;
		return toBean(new MyJsonParser(jsonURL), 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(jsonURL,new TypeReference&lt;List&lt;MyBean&gt;&gt;(){})

toBean(jsonURL, MyBean[])

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

@param jsonURL json url
@param valueTypeRef value type ref
@param <T> t
@return bean