Add a newline at the end of JSON in the state file.