Olá meus amigos, recebo um Json e preciso de pegar o valor de "Code" que está dentro de "Data" , no seguinte JSON, alguem pode me dar essa luz ai?
{
"id": "hook_ranv3YRHduZQ7j6y",
"account": {
"id": "acc_VOp3vW1tO5u1aj4y",
"name": "Fluency Bet"
},
"type": "charge.pending",
"created_at": "2022-12-18T22:44:26.1948056Z",
"data": {
"id": "ch_49kGEOjcof5Xv7a5",
"code": "WL7QBKDSY9",
"gateway_id": "1051623770",
"amount": 3000,
"status": "pending",
"currency": "BRL",
"payment_method": "pix",
"created_at": "2022-12-18T22:44:21.3191135Z",
"updated_at": "2022-12-18T22:44:21.7073462Z",
"pending_cancellation": false,
"customer": {
"id": "cus_vjkDNG6tEtKB4yZd",
"name": "FGE1VWCNBNZX",
"email": "Email@hotmail.com",
"document": "01234567890",
"type": "individual",
"delinquent": false,
"created_at": "2022-10-17T21:33:41.047Z",
"updated_at": "2022-12-18T22:39:52.44Z",
"phones": {
"home_phone": {
"country_code": "55",
"number": "22180513",
"area_code": "21"
}
},
"metadata": {}
},
"order": {
"id": "or_ejOaVZ3tQAujaQwX",
"code": "WL7QBKDSY9",
"amount": 3000,
"closed": true,
"created_at": "2022-12-18T22:44:21.2788436Z",
"updated_at": "2022-12-18T22:44:21.7229633Z",
"closed_at": "2022-12-18T22:44:21.2788436Z",
"currency": "BRL",
"status": "pending",
"customer_id": "cus_vjkDNG6tEtKB4yZd"
},
"last_transaction": {
"transaction_type": "pix",
"qr_code": "00020101021226820014br.gov.bcb.pix2560pix.stone.com.br/pix/v2/8e45b21f-43e9-4a51-9577-7608ba3367aa520400005303986540530.005802BR5911Fluency Bet6014RIO DE JANEIRO62290525450d33f8cd1647089dbd80590630476D0",
"qr_code_url": "https://api.pagar.me/core/v5/transactions/tran_wJVr1wxFMyT7q92x/qrcode?payment_method=pix",
"expires_at": "2022-12-18T22:49:21Z",
"additional_information": [
{
"name": "Quantidade",
"value": "2"
}
],
"id": "tran_wJVr1wxFMyT7q92x",
"gateway_id": "1051623770",
"amount": 3000,
"status": "waiting_payment",
"success": true,
"created_at": "2022-12-18T22:44:21.3191135Z",
"updated_at": "2022-12-18T22:44:21.7073462Z",
"gateway_response": {},
"antifraud_response": {},
"metadata": {}
},
"metadata": {}
}
}