[ {"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} ] there is json how to calculate the same fields to remove them and send 5 parameters the number of identical parameters For any idea I will be grateful json is needed to build a chart for amcharts 4
Example
[ {"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} ]