rec format into json format