Yes, I know its too late, but it would be helpful whenever next one come to find his solution. My solution is convert your data in json string format like:
Dictionary<string,> myValues = new Dictionary<string,>();
myValues.Add("one", "1");
myValues.Add("two", "2");
myValues.Add("three", "3");
StringBuilder sb = new StringBuilder();
sb.Append("{");
bool first = true;
foreach (string k in myValues.Keys)
{
if (!first)
{
sb.Append(",");
}
sb.AppendFormat("\"{0}\":\"{1}\"", k, myValues[k]);
first = false;
}
sb.Append("}");