public String genJSONRequest(String method, String field, String id) {
        try {
            JsonObject req = new JsonObject();
            req.addProperty("method", method);
            JsonObject arguments = new JsonObject();
            
            //FIELDS
            Scanner sc = new Scanner(field).useDelimiter(", *");
            //JsonObject args = new JsonObject();
            JsonArray argsarray = new JsonArray();
            while (sc.hasNext()) {
                //args.append("fields", sc.next());
                argsarray.add(new JsonPrimitive(sc.next()));
            }
            //req.add("arguments", fields);
            arguments.add("fields", argsarray);
            
            
            //IDS
            if(id != null){
                sc = new Scanner(id).useDelimiter(", *");
                JsonArray idsarray = new JsonArray();
                while (sc.hasNext()) {
                    //args.append("fields", sc.next());
                    idsarray.add(new JsonPrimitive(Integer.parseInt(sc.next())));
                }
                //req.add("arguments", idsarg);
                arguments.add("ids", idsarray);
            }
            req.add("arguments", arguments);
            

            return req.toString();
        } catch (JsonIOException e) {
            return null;
        }
    }