Exemplo n.º 1
0
        public static string ToJson(string method, string[] param)
        {
            var inst = new JRequest {
                Method = method, Param = param
            };

            return(JSON.ToJson(inst));
        }
Exemplo n.º 2
0
 public static JRequest Parse(string jsonString)
 {
     try
     {
         var inst = new JRequest();
         inst = JSON.ToObject <JRequest>(jsonString);
         return(inst);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }