php 循环json,从PHP循环组织JSON

晚安,我有一个JSON文件,我需要按票证组织它,从每个票证中带出他们的主题,但我不能做这个循环。有人能帮我吗?

我有25张这样的票,这里还有一个结构的例子。

[

{

"TicketID": 28890,

"CategoryID": 57526,

"CustomerID": 97979,

"CustomerName": "Cox Workman",

"CustomerEmail": "cox.workman@seges.com.br",

"DateCreate": "2017-12-13 03:08:42",

"DateUpdate": "2018-01-04 09:18:25",

"Interactions": [

{

"Subject": "Without Subject",

"Message": "I'm looking for men's shorts With side pockets 100 percent polyester.",

"DateCreate": "2017-12-13 03:08:42",

"Sender": "Customer"

},

{

"Subject": "RE: Without Subject",

"Message": "Hello! How are you? We don't have this model: / We have other models on the site, take a look.",

"DateCreate": "2018-01-03 09:18:25",

"Sender": "Expert"

},

{

"Subject": "RE: Without Subject",

"Message": "Thank you. GO shorts like with side pockets. Who made this model?",

"DateCreate": "2018-01-04 09:18:25",

"Sender": "Customer"

}

]

},

{

"TicketID": 28891,

"CategoryID": 46403,

"CustomerID": 97974,

"CustomerName": "Vilma Mcmahon",

"CustomerEmail": "vilma.mcmahon@seges.com.br",

"DateCreate": "2017-12-25 03:12:39",

"DateUpdate": "2018-02-12 05:14:11",

"Interactions": [

{

"Subject": "Complaint",

"Message": "Good night! I bought a shoe for my daughter at the store, but it is staining the sock, see the photos; What can I do to not ruin all the socks ???",

"DateCreate": "2017-12-25 03:12:39",

"Sender": "Customer"

},

{

"Subject": "RE: Complaint",

"Message": "Good morning How are you? We hope so! Wow, a shame it happened with tennis ... In this case, there is a different warranty for 12 months, and to offer this guarantee, the brand defines that for cases of defects, the evaluation is done directly with them, to evaluate the defect and already issue the authorization code for the exchange. As soon as the code is issued, just go to the store with the product to exchange! ",

"DateCreate": "2018-02-12 05:14:11",

"Sender": "Expert"

}

]

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值