Friends please help me to parse this response using Json object and json array concept
I get all field as Strings for displaying
{"status": "OK",
"data": {
"passenger": [
{"status": "S2 , 26",
"seat_number": "RAC 53,GNWL"},
{"status": "S2 , 27", "seat_number": "RAC 54,GNWL"}],
"from": {"code": "MAQ",
"name": "MANGALORE",
"time": "14:40"},
"chart_prepared": true,
"alight":
{"code": "LTT",
"name": "LOKMANYA TILAK (T)",
"time": "06:35"},
"pnr_number": "4243907794",
"train_number": "12620",
"to": {"code": "LTT",
"name": "LOKMANYA TILAK (T)",
"time": "06:35"},
"board": {"timestamp": 1344849000,
"code": "MAQ",
"name": "MANGALORE",
"time": "14:40"},
"train_name": "MATSYAGANDA EXP",
"travel_date": {"date": "13-8-2012",
"timestamp": 1344796200},
"class": "SL"
}
}
Here in above image of structure of your JSON

you should better use http://jsonviewer.stack.hu/ and paste your json here to view and understand its structure and then can use GSON or any other library to parse it and get what you want out of it