I want to parse this json array in android?what is the best way to do it in android or what is the best way to create json array to relevant android json parsing.

MySql Table Data(sample)

```
key | name | lgtime
--------------------
1   | Cat 1| 899011
2   | Cat 2| 899011
3   | Cat 3| 899011
4   | Cat 4| 899011

```

This json array create from php 

```
public static function getCategory($_lgtime) {
        $con = JsonDataManip::connect();
        $stmt = $con->prepare("select * from " . _TABLE_CATEGORY . " where lgtime > ?");
        $stmt->execute(array($_lgtime));
        while ($row = $stmt->fetch()) {
            $jsonArray['key'] = $row['key'];
            $jsonArray['name'] = $row['name'];
            $jsonArray['lgtime'] = $row['lgtime'];
            $json[] = $jsonArray;
        }
        return $json;
    }

```

**usage :(php)**

```
echo json_encode(JsonDataManip::getCategory('899011'));

[{
"key":"1",
"name":"Cat 1",
"lgtime":"899011"
},
{
"key":"2",
"name":"Cat2",
"lgtime":"899011"
},
{
"key":"3",
"name":"Cat 3",
"lgtime":"899011"
}

```