convert raw data to grid with json file