Removed leading whitespace from json file write.