change the output to json format