I started trying to save using generic objects, and when I'm saving a Dictionary<string, object>, and I'm adding a List as an object it fails as
Code: Select all
FormatException: Expected '{' or "null", found '['.
Basically:
Code: Select all
List<string> thisIsAList = new List<string> { "One", "Two" };
Dictionary<string, object> references = new Dictionary<string, object>();
public void SomeSaveMethod()
{
references.Add("List", thisIsAList);
ES3.Save("References", references);
}
public void SomeLoadMethod()
{
references = ES3.Load<Dictionary<string, object>>("References");
thisIsAList = (List<string>)references["List"];
}
I saw the same issue here but the poster did not follow through https://moodkie.com/forum/viewtopic.php?p=9529#p9529.
Is there anything that you think I can to overcome this?
Thank you in advance!