make the file a valid json