Skip to content

Commit 00335bd

Browse files
Merge branch 'main' into imgbot
2 parents 6b8c7e1 + f823c8c commit 00335bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

streamerbot/3.api/3.csharp/0.guide/1.variables.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ public class TestClass
145145
List<TestClass> testList = new List<TestClass>(){...};
146146
string jsonSaveString = JsonConvert.SerializeObject(testList);
147147
CPH.SetGlobalVar("savingClass", jsonSaveString, true);
148+
149+
//... Deserializing saved JSON string
150+
string savedString = CPH.GetGlobalVar("savingClass", true);
151+
List<TestClass> savedList = JsonConvert.DeserializeObject<List<TestClass>>(savedString);
148152
```
149153

150154
## Special Arguments

0 commit comments

Comments
 (0)