| Package | Description |
|---|---|
| com.alibaba.fastjson2 | |
| com.alibaba.fastjson2.util |
| Modifier and Type | Method and Description |
|---|---|
static TypeReference<?> |
TypeReference.get(java.lang.reflect.Type type)
Gets a type reference for the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JSONObject.getObject(java.lang.String key,
TypeReference<T> typeReference,
JSONReader.Feature... features)
Returns the result of the
Type converter conversion of the associated value in this JSONObject. |
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
TypeReference typeReference,
JSONReader.Feature... features)
Parses JSONB bytes to an object of the specified type reference
|
static <T> T |
JSON.parseObject(java.lang.String text,
TypeReference<T> typeReference,
Filter filter,
JSONReader.Feature... features)
Parses the json string as
T. |
static <T> T |
JSON.parseObject(java.lang.String text,
TypeReference<T> typeReference,
JSONReader.Feature... features)
Parses the json string as
T. |
static <T> T |
JSONObject.parseObject(java.lang.String text,
TypeReference<T> typeReference,
JSONReader.Feature... features)
See
JSON.parseObject(java.lang.String) for details |
<T> T |
JSONObject.to(TypeReference<T> typeReference,
JSONReader.Feature... features)
Convert this
JSONObject to the specified Object |
<T> T |
JSONObject.toJavaObject(TypeReference<T> typeReference,
JSONReader.Feature... features)
Deprecated.
since 2.0.4, please use
JSONObject.to(Type, JSONReader.Feature...) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Type |
BeanUtils.getFieldType(TypeReference typeReference,
java.lang.Class<?> raw,
java.lang.reflect.Member field,
java.lang.reflect.Type fieldType) |
static java.lang.reflect.Type |
BeanUtils.getParamType(TypeReference type,
java.lang.Class<?> raw,
java.lang.Class declaringClass,
java.lang.reflect.Parameter field,
java.lang.reflect.Type fieldType) |