与杰克逊一起攀登
我有像这样的json
{ "id":"tcsId", "status":0, "value":[ { "teachClassMaster":{ "maxStudCnt":"130", "lessonSchedules":[ { "classroom":{ "roomId":"649", "fullName":"" }, "timeBlock":{ "classSet":"480", "name":"", "endWeek":"16", "beginWeek":"9", "tmbId":"7905", "dayOfWeek":"2" }, "lsschId":"63652" } ], "studCnt":"128", "lessonTeachers":[ { "teacher":{ "name":"", "teacherId":"7528" } } ], "name":"(2015-2016-1)-ac13544006-601026-1", "tcmId":"46336", "lessonSegment":{ "lssgId":"25512", "lesson":{ "courseInfo":{ "courName":"" } }, "fullName":"" } }, "tcsId":"3626332", "student":null, "dateAccept":"2015-06-16T20:42:05" } ] }
结构非常复杂,如果我使用正常方式(转换为Object),我将有大量无用的类,代码会相当混乱。
有没有办法直接挑出某个值,比如使用['teachClassMaster'] ['lessonSchedules'] [0] ['classRoom'] ['roomId']获得649?
非常感谢。