make the request with a query and return a json decoded to a vector
fail when no arguments are present