set output file as json