Ineed to post data in JSON format as shown below And the **size** of the array is not 
**constant.** it depends on the user.

```
  {
  "info": [
    {
      "Name": "foo1",
      "Number": 123
    },
    {
      "Name": "foo2",
      "Number": 124
    },
    {
      "Name": "foo2",
      "Number": 125
    }
  ]
}

```

I tried to create in the following way 

```
JSONObject parent = new JSONObject();
JSONArray jArray = new JSONArray();
JSONObject childObj = new JSONObject();

childObj.put("Name", etName.getText()).toString();
childObj.put("Number", etNumber.getText()).toString();

jArray.put(childObj);

parent.put("info",jArray);

```

but i'm unable to get it and I also tried in this way like [example 6.1](http://code.google.com/p/json-simple/wiki/EncodingExamples) but there is no method like add for JSONArray. So how can post my data. Please help me.
Thanks.