Ok Obrigado
Vou trabalho em cima disso
Ruim é trabalhar com esse json, se fosse xml era bem mais facil
Como vou fazer essas identacoes no modelo do Jose Quintas ?
Ou tem como colocar a informacao de outra forma ?
"date_finish": "30/11/2021",
"doc_freight": [
{
"doc_freight_type": "1",
"doc_freight_number": "123456789",
"doc_freight_cubing": "300.00",
"doc_freight_commodity_value": "90.00",
"doc_freight_weight": "300.00",
"doc_freight_nature": "2617",
"fiscal_person": [
{
"fiscal_type": "1",
"fiscal_doc_type": "1",
"fiscal_doc_number": "89.637.085/0001-27",
Código: Selecionar todos
{
"integrated_by": "70ecda3b-1c2c-43b4-b730-f7af34a114ff",
"payment_method": "1",
"contractor_operation_type": "1",
"id_freight_client": "89182",
"freight_credited": "OWNER",
"load_weight": "300.00",
"load_nature": "2617",
"source_state": "SP",
"source_city": "SÃO PAULO",
"source_city_ibge": "5300108",
"source_cep": "13880000",
"destination_state": "DF",
"destination_city": "BRASÍLIA",
"destination_city_ibge": "5300108",
"destination_cep": "13880000",
"toll_value": "",
"fuel_value": "",
"date_departure": "30/11/2021",
"date_finish": "30/11/2021",
"doc_freight": [
{
"doc_freight_type": "1",
"doc_freight_number": "123456789",
"doc_freight_cubing": "300.00",
"doc_freight_commodity_value": "90.00",
"doc_freight_weight": "300.00",
"doc_freight_nature": "2617",
"fiscal_person": [
{
"fiscal_type": "1",
"fiscal_doc_type": "1",
"fiscal_doc_number": "89.637.085/0001-27",
"fiscal_name": "José",
"fiscal_address_zip_code": "01308-020",
"fiscal_address": "Rua das Laranjeiras"
},
{
"fiscal_type": "2",
"fiscal_doc_type": "1",
"fiscal_doc_number": "09.144.751/0001-56",
"fiscal_name": "José",
"fiscal_address_zip_code": "01308-020",
"fiscal_address": "Rua das Laranjeiras"
},
{
"fiscal_type": "3",
"fiscal_doc_type": "1",
"fiscal_doc_number": "09.144.751/0001-56",
"fiscal_name": "José",
"fiscal_address_zip_code": "01308-020",
"fiscal_address": "Rua das Laranjeiras"
},
{
"fiscal_type": "4",
"fiscal_doc_type": "1",
"fiscal_doc_number": "09.144.751/0001-56",
"fiscal_name": "José",
"fiscal_address_zip_code": "01308-020",
"fiscal_address": "Rua das Laranjeiras"
}
]
}
],
"hired": [
{
"hired_type": "1",
"hired_name": "Gaby",
"hired_doc": [
{
"hired_doc_type": "2",
"hired_doc_number": "34861575826"
},
{
"hired_doc_type": "5",
"hired_doc_number": "11577578"
}
],
"hired_account_agency": "1",
"hired_account_agency_digit": "1",
"hired_account_number": "1",
"hired_account_bank": "237",
"hired_account_type": "1"
},
{
"hired_type": "2",
"hired_name": "",
"hired_doc": [
{
"hired_doc_type": "",
"hired_doc_number": ""
}
]
},
{
"hired_type": "3",
"hired_name": "Werley",
"hired_doc": [
{
"hired_doc_type": "2",
"hired_doc_number": "11443626520"
}
]
}
],
"vehicle": [
{
"vehicle_plate": "PZV8946",
"vehicle_rntrc": "11577578",
"vehicle_category": "1"
}
],
"parcel": [
{
"parcel_effectiveness_type": "2",
"parcel_value": "100.00",
"parcel_subtype": "1",
"parcel_status_id": "2",
"parcel_number_client": "1"
},
"freight_value_gross": "200.00",
"tax": [
{
"tax_type": "IR",
"tax_value": "1.00"
}
],
"discharge": [
{
"discharge_reservation": "2",
"discharge_place": "2",
"discharge_discount_type": "2",
"discharge_load_type": "1",
"discharge_tolerance": "10"
}
]
}