use one single URL to query the JSON API, and pass the method name as a parameter