How to `skip_before_filter` for **`index`** and **`show`** controller only if the format is `__json__` and not html?
Something like 

```
skip_before_filter :authenticate_user!, :only => [:index, :show, :format => :json] 

```

I'm using **rails 3.2**. Thanks.