diff --git a/streamerbot/3.api/3.csharp/0.guide/1.variables.md b/streamerbot/3.api/3.csharp/0.guide/1.variables.md index 04153c00..4095d23f 100644 --- a/streamerbot/3.api/3.csharp/0.guide/1.variables.md +++ b/streamerbot/3.api/3.csharp/0.guide/1.variables.md @@ -145,6 +145,10 @@ public class TestClass List testList = new List(){...}; string jsonSaveString = JsonConvert.SerializeObject(testList); CPH.SetGlobalVar("savingClass", jsonSaveString, true); + +//... Deserializing saved JSON string +string savedString = CPH.GetGlobalVar("savingClass", true); +List savedList = JsonConvert.DeserializeObject>(savedString); ``` ## Special Arguments