<?php
$json = '{
"Title": "JSON GM Broker Transaction (REST Service)",
"Description": "JSON GM Broker Transaction (REST Service)",
"TransactionType": "1",
"Partner": {
"PartnerId": "6729"
},
"Buyer": {
"Email": "escrow.buyer@hotmail.com",
"Initiator": "false",
"CompanyChk": "false",
"AutoAgree": "false",
"AgreementChecked": "false"
},
"Seller": {
"Email": "escrow.seller@hotmail.com",
"Initiator": "false",
"CompanyChk": "false",
"AutoAgree": "false",
"AgreementChecked": "false"
},
"Broker": {
"Email": "escrow.broker@hotmail.com",
"Initiator": "true",
"CompanyChk": "true",
"AutoAgree": "true",
"AgreementChecked": "true"
},
"LineItems": [
{
"ItemName": "Line item 1",
"Description": "REST Service test line item",
"Quantity": "1",
"Price": "2500",
"Accept": "true",
"SellComm": "100",
"BuyComm": "50"
}
],
"EscrowPayment": "0",
"ShipmentFee": "25",
"ShipmentPayment": "0",
"InspectionLength": "6",
"Currency": "USD",
"Fulfillment": "1",
"Disclosure": "1",
"BrokerCommissionPayee": "Buyer",
"BrkCommissionBuyerPortion": "18.1",
"BrkCommissionSellerPortion": "19.1",
"CommissionType": "1",
"InitiationDate": "2014-04-15",
"TransactionLocked": "true",
"PartnerTransID": "12345",
"TermsLocked": "true",
"AllowReject": "true"
}';
$decoded = json_decode($json);
var_export($decoded);
preferences:
44.51 ms | 402 KiB | 5 Q