binning json file