这是我正在使用的 json:
{
"data": [{
"Contact_Name": {
"id": "1884053000034678068"
},
"Subject": "1 - XKBKNABJK",
"Status": "Sans Impact Stock",
"Entity": "",
"Etat": "CM - Annul\u00e9",
"Invoice_Date": "2017-11-21",
"Discount": 0.000000,
"Tax": ["TVA"],
"Total_HT": "55.000000",
"Total_TVA": 0,
"Methode_de_paiement": "Payment by check",
"ID_Lip": "1",
"Origine": "CM",
"Type_de_Facture": "Solde",
"Transporteur": "My carrier",
"Reference_Colis": "",
"Billing_Street": "16, Main street",
"Compl_ment_Facturation": "2nd floor",
"Billing_City": "Miami",
"Billing_Country": "\u00c9tats-Unis",
"Billing_Code": "33133",
"Shipping_Street": "16, Main street",
"Compl_ment_Livraison": "2nd floor",
"Shipping_City": "Miami",
"Shipping_Country": "\u00c9tats-Unis",
"Shipping_Code": "33133",
"Product_Details": [{
"product": {
"id": "1884053000030235273"
},
"Product_Name": Blouse - Color: White,
Size: M,
"list_price": 22.5,
"quantity": 1,
"Discount": 0,
"Discount_Amount": 0,
"line_tax": [{
"percentage": 20,
"name": "TVA"
}]
}, {
"product": {
"id": "1884053000030235273"
},
"Product_Name": Printed Dress - Color: Orange,
Size: S,
"list_price": 21.67,
"quantity": 1,
"Discount": 0,
"Discount_Amount": 0,
"line_tax": [{
"percentage": 20,
"name": "TVA"
}]
},
但是当我使用 json_encode() 函数时,它不会返回一个对象 json 而只是一个空数组,我也没有在代码中看到任何语法错误。我不知道这是否真的是语法错误或其他什么.. 有人可以帮助我知道问题出在哪里吗?先感谢您!
慕的地6264312
MMMHUHU