調用API服務器的結果「成功」是一個JSON文件,該文件以該字符串開頭:如何刪除「結果」:在JSON回調
{
"result": "success"
, "data": {"total":16080,"pageCount":161,"result":[{"packWidth":250,"itemNo"
如何去除一部分我不在乎? 就是這個
{
"result": "success"
, "data": {"total":16080,"pageCount":161,"result":
完整的結果是:
{
"result": "success"
, "data": {"total":16080,"pageCount":161,"result": [{"packWidth":250,"itemNo":"1203945","groupItemNo":"1203945","status":1,"categoryId":105096,"packType":"Color Box","barcode":"6922833439687","modelLabel":"Color","packQty":24,"packInclude":"USB Cable, User Manual, USB Charger, Earphone, 1pcs Li-Battery, LCD Protector, Leather Case, Plastic Case","clearance":false,"id":103928,"packWeight":"12.500","price":"181.2800","packLength":400,"description":"description test","unitWeight":"0.726","packHeight":300}]}}
我使用PHP語言
我不得不刪除初始部分:
{
"result": "success"
, "data": {"total":16080,"pageCount":161,"result":
和最後:
}}
你使用什麼語言? – Savv
嗨,你可以發送完整的JSON,以便我可以幫助,也請詳細說明你的問題。謝謝 – Subh
我編輯了這個問題,謝謝 – user3406254