I have an object that looks like this:
public class MyObj
{
[JsonProperty("someProp")]
public string someProp { get; set; }
[JsonProperty("parameters")]
[JsonExtensionData]
public IDictionary<string, object> Parameters { get; set; } = new Dictionary<string, object>();
}
{
"parameters" : [{"firstName": "John"}, {"lastName": "Doe"}]
}
How do I convert the above so that Parameters looks like this?
"firstName": "John", "lastName": "Doe"
What it looks like now when I post my data is
"parameters": "{"firstName": "John"}, {"lastName": "Doe"}]"