public static void Parser_comand(String cmd)
    {
        int length_cmd = cmd.length();
        StringBuilder aaa = new StringBuilder();
        char str;
        for (int k=11; k<length_cmd-9;k++)
        {
           str= cmd.charAt(k);
           aaa.append(str);
        }
        cmd = aaa+"";
        WritePaymentLog(cmd, cashe_machine.id_payment);
        String result = cmd;
         try
         {
             result = java.net.URLDecoder.decode(result, "UTF-8");
             JSONObject json_cmd = new JSONObject(result);
             String start_cmd = json_cmd.getString("command");
             try {
                 MyEnum e = MyEnum.valueOf(start_cmd);
                 switch (e) {
                     case print:
                         printer.main(json_cmd);  // Отправили на в функцию печать JSON
                         break;
                     case dispense:
                         dispencer.main(cmd);
                         break;
                     case card:
                         card_reader.main(cmd);
                         break;
                     case cashe:
                         cashe_machine.main(json_cmd);
                         break;
                 }
             } catch (IllegalArgumentException iae) {

             }
             String pr_string = json_cmd.getString("params");
             JSONObject param = new JSONObject(pr_string);
         }
         catch (Exception e){

         }
    }