title: how to create two dimensional json array in java
body: <p>Please help me. I want to create like the following json array in java</p>
  
  <pre><code> var tasks = {
          data:[
              {id:1, text:"Project #1",start_date:"31-03-2013", duration:3, progress: 1, open: true},
              {id:2, text:"Task #1",   start_date:"03-04-2013", duration:5, progress: 1,   open: true, parent:1},
              {id:3, text:"Task #2",   start_date:"02-04-2013", duration:7, progress: 0.5, open: true, parent:1},
              {id:4, text:"Task #2.1", start_date:"03-04-2013", duration:2, progress: 1,   open: true, parent:3},
              {id:5, text:"Task #2.2", start_date:"04-04-2013", duration:3, progress: 0.8, open: true, parent:3},
              {id:6, text:"Task #2.3", start_date:"05-04-2013", duration:4, progress: 0.2, open: true, parent:3}
          ],
          links:[
              {id:1, source:1, target:2, type:"1"},
              {id:2, source:1, target:3, type:"1"},
              {id:3, source:3, target:4, type:"1"},
              {id:4, source:4, target:5, type:"0"},
              {id:5, source:5, target:6, type:"0"}
          ]
      };
  </code></pre>
  
  <p>Thanks for any help.</p>