fix ParseFile bug and modify save data file format

Fix ParseFile bug and modify save data file format from UserData to
JSON.