If I have this method:
public void doSomething (Dictionary<String, Object> data)
{
JObject jsonObject = new JObject(data);
...
}
I get a System.ArgumentException on the line where I create the JObject. I'm using Newton-King's Json.net wrapper.
The error I get is:
A first chance exception of type 'System.ArgumentException' occurred in Newtonsoft.Json.DLL An exception of type 'System.ArgumentException' occurred in Newtonsoft.Json.DLL but was not handled in user code
What am I doing wrong here?
Could not determine JSON object type for type System.Collections.Generic.KeyValuePair2[System.String,System.String].`?A first chance exception of type 'System.ArgumentException' occurred in Newtonsoft.Json.DLL An exception of type 'System.ArgumentException' occurred in Newtonsoft.Json.DLL but was not handled in user code