0
In my program I do a GET and get the following:
{"totalcount":2,"count":2,"sort":1,"order":"ASC","data":[{"2":8283,"1":"Teste","12":6,"15":"2018-03-29 11:30:04","19":"2018-03-29 15:13:18","10":5,"4":981,"5":981,"8":null,"159":0,"7":"Others > Management","18":null,"82":0},{"2":8282,"1":"TESTE AFD","12":5,"15":"2018-03-29 11:14:24","19":"2018-04-02 08:58:50","10":3,"4":981,"5":981,"8":null,"159":0,"7":"Services > I need to bill a new client without a software license.","18":null,"82":0}],"content-range":"0-1/2"}
But not all of this data interests me, I want to make a list that contains the ID’s of the filtered tickets. That is, within this json there is a field called date, which contains the following:
"data":[{"2":8283,"1":"Teste","12":6,"15":"2018-03-29 11:30:04","19":"2018-03-29 15:13:18","10":5,"4":981,"5":981,"8":null,"159":0,"7":"Others > Management","18":null,"82":0},{"2":8282,"1":"TESTE AFD","12":5,"15":"2018-03-29 11:14:24","19":"2018-04-02 08:58:50","10":3,"4":981,"5":981,"8":null,"159":0,"7":"Services > I need to bill a new client without a software license.","18":null,"82":0}]
And within the date there are the "2" fields that contain the ID’s:
"2":8283 e "2":8282
I want to create a list of those two Id’s, but I don’t know how to filter the data to get only the Id’s on a list, someone can help me:
Perfect, thank you!
– IdkWhy