Avoid destroy the whitespaces when write back the JSON file.