Switch data format to json