Package com.alibaba.fastjson2
Class JSONObjectKt
-
- All Implemented Interfaces:
public final class JSONObjectKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Tto(JSONObject $self, JSONReader.Feature features)E.g. final static <T extends Any> Tto(JSONObject $self, String key, JSONReader.Feature features)E.g. final static <T extends Any> Tinto(JSONObject $self, JSONReader.Feature features)Implemented using TypeReferenceE.g. final static <T extends Any> Tinto(JSONObject $self, String key, JSONReader.Feature features)Implemented using TypeReferenceE.g. -
-
Method Detail
-
to
final static <T extends Any> T to(JSONObject $self, JSONReader.Feature features)
E.g.
val data = "...".parseObject() val user = data.to<User>()- Returns:
T?
- Since:
2.0.3
-
to
final static <T extends Any> T to(JSONObject $self, String key, JSONReader.Feature features)
E.g.
// JSONObject val data = "...".parseObject() val user = data.to<User>("key")- Returns:
T?
- Since:
2.0.4
-
into
final static <T extends Any> T into(JSONObject $self, JSONReader.Feature features)
Implemented using TypeReference
E.g.
val data = "...".parseObject() val user = data.into<User>()- Returns:
T?
- Since:
2.0.4
-
-
-
-