How to read JSON object data?

Data:
{“meta”:{“code”:200,“type”:“Success”,“message”:“Success”},“data”:{“id”:“d6fdfd6aa1dea94109606ff666cce036”,“tracking_number”:“5271578126”,“carrier_code”:“dhl”,“status”:“delivered”,“track_update”:false,“created_at”:“2020-01-20T11:17:38+00:00”,“updated_at”:“2020-01-20T11:17:41+00:00”,“order_create_time”:null,“customer_email”:"",“title”:"",“order_id”:null,“comment”:null,“customer_name”:null,“archived”:false,“original_country”:“India”,“singed_by”:“Company stamp”,“destination_country”:“France”,“itemTimeLength”:“3”,“stayTimeLength”:“32”,“origin_info”:{“ReferenceNumber”:null,“ItemReceived”:“2019-12-16 18:15:00”,“ItemDispatched”:null,“DepartfromAirport”:null,“ArrivalfromAbroad”:null,“CustomsClearance”:“2019-12-17 22:52:00”,“DestinationArrived”:null,“weblink”:“http://www.dhl.co.in/en/contact_center/contact_express.html#local_contact",“phone”:"1800 111 345/ 1 800 200 1345”,“carrier_code”:“dhl”,“trackinfo”:[{“Date”:“2019-12-19 11:45:00”,“StatusDescription”:“Delivered - Signed for by: Company stamp”,“Details”:“CORNEBARRIEU “,“checkpoint_status”:“delivered”},{“Date”:“2019-12-19 10:48:00”,“StatusDescription”:“With delivery courier”,“Details”:“TOULOUSE - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 09:34:00”,“StatusDescription”:“Processed at TOULOUSE - FRANCE”,“Details”:“TOULOUSE - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 09:30:00”,“StatusDescription”:“Clearance processing complete at TOULOUSE - FRANCE”,“Details”:“TOULOUSE - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 08:29:00”,“StatusDescription”:“Shipment on hold”,“Details”:“TOULOUSE - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 08:26:00”,“StatusDescription”:“Arrived at Sort Facility TOULOUSE - FRANCE”,“Details”:“TOULOUSE - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 07:38:00”,“StatusDescription”:“Customs status updated”,“Details”:“TOULOUSE - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 07:32:00”,“StatusDescription”:“Departed Facility in LYON - FRANCE”,“Details”:“LYON - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 07:32:00”,“StatusDescription”:“Transferred through LYON - FRANCE”,“Details”:“LYON - FRANCE”,“checkpoint_status”:“transit”},{“Date”:“2019-12-19 04:34:00”,“StatusDescription”:“Departed Facility in LEIPZIG - GERMANY”,“Details”:“LEIPZIG - GERMANY”,“checkpoint_status”:“transit”},{“Date”:“2019-12-18 22:22:00”,“StatusDescription”:“Processed at LEIPZIG - GERMANY”,“Details”:“LEIPZIG - GERMANY”,“checkpoint_status”:“transit”},{“Date”:“2019-12-18 21:57:00”,“StatusDescription”:“Arrived at Sort Facility LEIPZIG - GERMANY”,“Details”:“LEIPZIG - GERMANY”,“checkpoint_status”:“transit”},{“Date”:“2019-12-18 12:27:00”,“StatusDescription”:“Departed Facility in BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-18 11:19:00”,“StatusDescription”:“Processed at BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 22:52:00”,“StatusDescription”:“Clearance processing complete at BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 16:25:00”,“StatusDescription”:“Arrived at Sort Facility BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 16:22:00”,“StatusDescription”:“Departed Facility in BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 16:22:00”,“StatusDescription”:“Processed at BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 09:49:00”,“StatusDescription”:“Processed at BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 07:12:00”,“StatusDescription”:“Clearance event”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-17 01:25:00”,“StatusDescription”:“Departed Facility in BANGALORE - INDIA”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”},{“Date”:“2019-12-16 18:15:00”,“StatusDescription”:“Shipment picked up”,“Details”:“BANGALORE - INDIA”,“checkpoint_status”:“transit”,“ItemNode”:“ItemReceived”}]},“service_code”:””,“status_info”:"",“weight”:"",“substatus”:null,“packageStatus”:"",“lastEvent”:“Delivered - Signed for by: Company stamp,CORNEBARRIEU,2019-12-19 11:45:00”,“lastUpdateTime”:“2019-12-19 11:45:00”}}

I want read data like status ,date etc.

You can covert that json to custom object after that you can ready using custom object.

Kindly refer the following code and also following article:

Variables.ConvertJsonToCustomObject
Json: WebServiceResponse CustomObject=> JsonAsCustomObject

2 Likes

Admin Note: @rushi.dalvi Please do not post again a topic which belongs in a specific category as Uncategorized.
Take the time to post to the appropriate category in order to maintain our forum in the best state possible and help other members find solutions easily.
Please respect the rules.
Thank you.

1 Like

@Suniel
thanks for the help. :blush:

1 Like