Rearrange the JSON message and use StringUtils to escape