fixed percentile json parsing