Skip to content

Commit 765dbf7

Browse files
committed
Added setter example
1 parent 0655025 commit 765dbf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

JSONSerializerPackage/Assets/Code/JSONTester.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ public void WriteExample()
2727
{
2828
JSON writeJSON = new JSON();
2929

30-
writeJSON.AddBool("myBool", false);
30+
writeJSON.AddBool("myBool", true);
3131
writeJSON.AddInt("myInt", 987);
3232
writeJSON.AddFloat("myFloat", 654.321f);
3333
writeJSON.AddString("myStr", "What's up, World!");
3434

35+
writeJSON.SetBool("myBool", false);
36+
3537
writeJSON.WriteToFile(writeFile);
3638
}
3739

0 commit comments

Comments
 (0)