示例#1
0
 /// <summary>
 /// Converts a JSON encoded string into an associative array.
 /// </summary>
 /// <param name="source">The string to decode.</param>
 /// <returns>An associative array.</returns>
 public static Dictionary <string, object> JsonDecode(string source)
 {
     try
     {
         ErrorLevel = 0;
         return(SimpleJson.Decode(source));
     }
     catch (Exception)
     {
         ErrorLevel = 1;
         return(null);
     }
 }