<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.46</version>
</dependency>
import com.alibaba.fastjson.JSON;
List<T> list= JSON.parseArray(JSON.toJSONString(yourObject), T.class);