change output to json