print to json format