I have serialized xpo objects into JSON data in separate project using default session. But when I try to de-serialize the same within view controller i am getting default session error. I am able to get the current session but I am not sure how to deserialize by using the current session.
Newtonsoft is being used to serialize and deserialize.
string filetext= File.ReadAllText("importedfile.json");
Plugin pl = (Plugin)JsonConvert.DeserializeObject(filetext,jsonsettings);
Plugin is my class name to which the JSON data should get deserialized.