Bootstrap

多层集合嵌套的JSON数据转化成Java对象(net.sf.json.JSONObject的toBean方法)

如题,希望将如下格式的JSON数据转化成Java对象。 

{
  "bList": [
    {
      "cList": [
        {
          "stuList": [
            {
              "age": 18,
              "name": "Alice"
            },
            {
              "age": 28,
              "name": "Bob"
            }
          ]
        },
        {
          "stuList": [
            {
              "age": 18,
              "name": "Candy"
            },
            {
              "age": 28,
              "name": "David"
            }
          ]
        }
      ]
    },
    {
      "cList": [
        {
          "stuList": [
            {
              "age": 18,
              "name": "张三"
            },
            {
              "age": 28,
              "name": "李四"
            }
          ]
      
;