I think the explicit alternative would be:

```ruby
rescue JSON::ParserError, TypeError
```