change string to json, and add simple log.