晚安,我有一个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"
}
]
}