code: private JSONObject createTickerJsonObject(ArrayList<Long> tokens, String action) {
          JSONObject jobj = new JSONObject();
          try {
              JSONArray list = new JSONArray();
              for (int i = 0; i < tokens.size(); i++) {
                  list.put(i, tokens.get(i));
              }
              jobj.put("v", list);
              jobj.put("a", action);
          }
          catch (JSONException e){
          }
  
          return jobj;
      }
docs: Create a JSONObject to send message to server.