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

	}
public static <T> T toBean(URL jsonURL, Class<T> clazz) {
		if (clazz == null || jsonURL == null)
			return null;
		return toBean(new MyJsonParser(jsonURL), clazz);

	}
public static < T > T toBean ( URL jsonURL , Class < T > clazz ) { if ( clazz == null || jsonURL == null ) return null ; return toBean ( new MyJsonParser ( jsonURL ) , clazz ) ; }
Json string to java bean <br>
<p>
e.g:
</p>
<pre>
{"id" : idValue, "name" : nameValue, "aBean" : {"aBeanId" : aBeanIdValue, ...}}
</pre>
<p>
List,Array,Map... see {@link #toBean(URL, TypeReference)}
</p>

@param jsonURL josn url
@param clazz class
@param <T> t
@return bean
Json string to java bean <br > <p > e . g : < / p > <pre > { id : idValue name : nameValue aBean : { aBeanId : aBeanIdValue ... }} < / pre > <p > List Array Map ... see { @link #toBean ( URL TypeReference ) } < / p >