Parse Json
HejJeg er lidt rusten i at få parset denne JSON i php:
Jeg skal have fat i "created_date"?
alt hjælp og ledetråde er meget velkommne. på forhånd tak..
{
"version": "3.0",
"account_id": 1,
"host_id": "XXXXXXX",
"name": "TEST",
"locale": {
"id": "en_PH",
"lang": "en",
"currency": "PHP"
},
"request": {
"status": "OK",
"resource": "booking",
"records": 100,
"total_records": 724,
"limit": 100,
"page": 1,
"pages": 7,
"time": 0.009,
"method": "get"
},
"debug": [
"select b.booking_id, b.code code, b.status_id, s.name status_name, created_date, money_format(b.total) total, money_format(b.tax_total) tax_total, money_format(b.paid_total) paid_total, customer_id, b.customer_name, customer_email, summary, date_desc, b.token from booking b, status s where b.status_id != 'PRE' and b.status_id = s.status_id order by b.booking_id asc limit 100"
],
"booking/index": {
"2": {
"booking_id": 2,
"code": "RQQK-110112",
"status_id": "PAID",
"status_name": "Paid",
"created_date": 1326274882,
"total": "3000.00",
"tax_total": "0.00",
"paid_total": "3000.00",
"customer_id": 1,
"customer_name": "xx",
"customer_email": "",
"summary": "Aircon ",
"date_desc": "Wed Jan 11 - Fri Jan 13, 2012",
"token": "f80ca53db4282a89a987a853e6151eaffe61c325"
},
"3": {
"booking_id": 3,
"code": "DGZP-110112",
"status_id": "PAID",
"status_name": "Paid",
"created_date": 1326275117,
"total": "3000.00",
"tax_total": "0.00",
"paid_total": "3000.00",
"customer_id": 2,
"customer_name": "xx"
"customer_email": "",
"summary": "Aircon ",
"date_desc": "Sun Jan 22 - Mon Jan 23, 2012",
"token": "12416b02ead25f3cb99a288448f6b6c80b0440b3"
}
}
}