Package com.alibaba.fastjson2
Class JSONArrayKt
-
- All Implemented Interfaces:
public final class JSONArrayKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Tto(JSONArray $self)E.g. final static <T extends Any> Tto(JSONArray $self, Integer index, JSONReader.Feature features)E.g. final static <T extends Any> Tinto(JSONArray $self)Implemented using TypeReferenceE.g. final static <T extends Any> Tinto(JSONArray $self, Integer index, JSONReader.Feature features)Implemented using TypeReferenceE.g. final static <T extends Any> List<T>toList(JSONArray $self, JSONReader.Feature features)E.g. -
-
Method Detail
-
to
final static <T extends Any> T to(JSONArray $self)
E.g.
val data = "...".parseArray() val users = data.to<Users>()- Returns:
T?
- Since:
2.0.3
-
to
final static <T extends Any> T to(JSONArray $self, Integer index, JSONReader.Feature features)
E.g.
val data = "...".parseArray() val users = data.to<User>(6)- Returns:
T?
- Since:
2.0.4
-
into
final static <T extends Any> T into(JSONArray $self)
Implemented using TypeReference
E.g.
val data = "...".parseArray() val users = data.into<List<User>>()- Returns:
T?
- Since:
2.0.3
-
into
final static <T extends Any> T into(JSONArray $self, Integer index, JSONReader.Feature features)
Implemented using TypeReference
E.g.
val data = "...".parseArray() val users = data.into<Map<String, User>>(6)- Returns:
T?
- Since:
2.0.4
-
-
-
-