使用api調用我正在讀取存儲在數組中的一系列數據對象,但我只想打印出返回的一些對象。在數組中訪問顯式對象
所有的數據都存儲在$mail
變量中。我期待來訪問交付例如,它會是這樣的$mail->delivered
這是樣本數據恢復 -
"""
[\n
{\n
"count_purchased": 0,\n
"delivered": 1,\n
"clicked_unique": 0,\n
"shared": 0,\n
"mailings": 1,\n
"year": 2016,\n
"month": 9,\n
"opened": 1,\n
"opted_out": 0,\n
"sent": 1,\n
"signed_up": 0,\n
},\n
{\n
"count_purchased": 0,\n
"delivered": 56,\n
"clicked_unique": 0,\n
"shared": 0,\n
"mailings": 31,\n
"year": 2016,\n
"month": 9,\n
"opened": 1,\n
"opted_out": 0,\n
"sent": 102,\n
"signed_up": 0,\n
}\n
]
是JSON響應? –