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

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

toBean(jsonBytes, MyBean[])

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

@param jsonBytes json bytes
@param valueTypeRef value type ref
@param <T> t
@return bean