2009-09-19 8 views

Répondre

3
Dictionary<string, string> d = ...; 

JsonObject jo = new JsonObject(
    from kv in d 
    select new KeyValuePair<string, JsonValue>(
     kv.Key, 
     new JsonPrimitive(kv.Value))); 
string json = jo.ToString(); 
Questions connexes