change output to json format

change output to json format