[
{"ip":"123","data":"2019-02-27 21:05:11","type":"1","source_id":123},
{"ip":"123","data":"2019-02-27 21:07:37","type":"1","source_id":135},
{"ip":"123","data":"2019-02-27 22:03:33","type":"1","source_id":123},
{"ip":"123","data":"2019-02-28 22:06:00","type":"1","source_id":123}
]
есть json как посчитать одинаковые поля убрать их и отправить 5 параметром количество одинаковых параметров За любую идею буду благодарен json нужен для постройки графика на amcharts 4
Пример
[
{"ip":"123","data":"2019-02-27 21:05:11","type":"1","source_id":125,"total":1},
{"ip":"123","data":"2019-02-27,"type":"1","source_id":125,"total":4}
]