Complete the code to declare the file path variable for saving data.
string filePath = Application.persistentDataPath + [1];The file path must include a slash before the file name to form a valid path.
Complete the code to write a JSON string to a file.
File.WriteAllText([1], jsonData);The first argument to WriteAllText is the file path where data will be saved.
Fix the error in reading the file content into a string.
string jsonData = File.[1](filePath);Use ReadAllText to read the entire file content as a single string.
Fill both blanks to deserialize JSON data into a PlayerData object.
PlayerData player = JsonUtility.[1]<[2]>(jsonData);
Use FromJson to convert JSON string to an object of type PlayerData.
Fill all three blanks to save player score to a JSON file.
string jsonData = JsonUtility.[1](playerData); File.[2]([3], jsonData);
First convert the playerData object to JSON string using ToJson, then write it to the file path using WriteAllText.
