Converting objects to query parameters on GET