Skip to content

Commit

Permalink
feat(SaveLoad): Use indented format for JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jan 18, 2025
1 parent 956d0ac commit d738655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/JCSUnity/Scripts/SaveLoad/JCS_JSONData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override void Save<T>(string fullFilePath)

using (var stream = new FileStream(fullFilePath, FileMode.Create))
{
string json = JsonConvert.SerializeObject(this);
string json = JsonConvert.SerializeObject(this, Formatting.Indented);
byte[] info = new UTF8Encoding(true).GetBytes(json);
stream.Write(info, 0, info.Length);
}
Expand Down

0 comments on commit d738655

Please sign in to comment.