/** * 根据json对象生成插入语句 */ // [WebMethod(Description = "<span style='color:#f74'>根据json对象生成插入语句 ;</span>")] public string AA_createInsertsql_ByDictionary(string key) { string jsonStr = "{\"name\":\"王五\",\"age\":\"29\",\"time\":\"2013-02-03\",\"sex\":\"男\"}"; Dictionary <string, object> dictionary = MyHashtable.JsonToDictionary(jsonStr); if (dictionary == null) { return("{\"result\":\"1\",\"message:\"传入参数错误\"}"); } return(SqlUtil.getInsertSql("AABB", dictionary)); }