Refactor `JSON.to_nil` to use `eql?`
Refactor `JSON.to_nil` to use `eql?`

The check

  input.is_a?(String) && input == ''

is equivalent to

  ''.eql?(input)

since `eql?` does not permit coercion

dryrb/dry-data,dryrb/dry-data,dryrb/dry-types,dryrb/dry-types