Ejemplo n.º 1
0
        //will deserialize json into an expando object
        public static ExpandoObject DeserializeJsonToExpando(string json)
        {
            Nancy.Json.JavaScriptSerializer ser = new Nancy.Json.JavaScriptSerializer();
            var dictionary = ser.Deserialize <IDictionary <string, object> >(json);

            return(dictionary.DictionaryToExpando());
        }
Ejemplo n.º 2
0
 //will deserialize json into an expando object
 public static ExpandoObject DeserializeJsonToExpando(string json)
 {
     Nancy.Json.JavaScriptSerializer ser = new Nancy.Json.JavaScriptSerializer();
     var dictionary = ser.Deserialize<IDictionary<string, object>>(json);
     return dictionary.DictionaryToExpando();
 }