java对象生成json字符串实例(eclipse工程),生成的结果如下:{"stuList":[{"stuname":"stu_jack","stuno":"stu001"},{"stuname":"stu_jack2","stuno":"stu002"}],"teaname":"tea_jack","teano":"tea_001"}自己可以组织生成更复杂的json字符串都是可以的,这里是给你编码