JSONReader add type reference support

This commit is contained in:
wenshao
2013-07-27 20:14:45 +08:00
parent 619f6224d5
commit 8434eec7b2
@@ -179,6 +179,10 @@ public class JSONReader implements Closeable {
return TypeUtils.castToString(object);
}
public <T> T readObject(TypeReference<T> typeRef) {
return readObject(typeRef.getType());
}
public <T> T readObject(Type type) {
if (context == null) {