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

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

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

toBean(jsonStr, MyBean[])

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

@param jsonStr json String
@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 ; () {} ;