Convert fir file to json format