1. 程式人生 > >json資料解析的一些常用操作

json資料解析的一些常用操作

一:String to List(JSON)

ObjectMapper mapper = new ObjectMapper();
try {
    List<StudentEssayQuestion> nodeList = mapper.readValue(result, new TypeReference<List<StudentEssayQuestion>>() {
    });

二:String[] 與List 陣列之間的轉換:

https://blog.csdn.net/qq_33157666/article/details/77922945?locationNum=6&fps=1