using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Mtxfw.Utility { public class StringUtils { #region 处理Json格式数据 /// /// 读取Json数据 /// /// Json格式数据 /// Json对象 public static LitJson.JsonData GetJsonObject(string strJson) { return LitJson.JsonMapper.ToObject(strJson); } /// /// 根据Key获取 /// /// Json格式数据 /// Json Key /// public static LitJson.JsonData GetJsonValue(string strJson, string Key) { return GetJsonObject(strJson)[Key]; } #endregion } }