I am using Editor Datatables and am returning data from Editor to a controler and am trying to read the values from a so-called Dictionary<string,object>. Can anyone advise how this is done. I read that the Dictionary needs to be Json deserialized but am not too sure how it's done. I'm including a picture of the values I'm trying to read. Thanks.enter image description here
I read in the controller the data returned via e.Values:
editor.PostCreate += (sender, e) => t = Task.Run(() => Add(intContTpe, lngContIdx, e.Values));
internal static void Add(int intContTpe, long lngContIdx, object objPCEAValues)
{
Dictionary<string, object> dicVoDaCDRFormats = new Dictionary<string, object>();
if (!dicPCEAValues.ContainsKey("CustomerVoiceCLICDRFormats.0"))
{
dicVoDaCDRFormats = ((Dictionary<string, object>)dicPCEAValues["CustomerVoiceCLICDRFormats"]);
PrintToOutput("", ((Dictionary<string, object>)dicPCEAValues["CustomerVoiceCLICDRFormats"])["0"]);
}
}