change output format to json