params to object given a url or a query string