```ruby
module NameChecker
  # Container class to represent the availability of a word on
  # a specific service.
  #
  #   Availability.new('twitter', false)
  #
  class Availability
    attr_reader :status, :service

    def initialize(service, status_input)
      @service = service.to_s
      @status = parse_status(status_input)
    end

    def to_s
      "#{service}: #{status}"
    end

    def available?
      status == "available"
    end

    def unavailable?
      status == "unavailable"
    end
    
    def unknown?
      status == "unknown"
    end

    def status=(status_input)
      @status ||= parse_status(status_input)
    end

    private 
      def parse_status(status_input)
        case status_input
        when true then "available"
        when false then "unavailable"
        else "unknown"
        end
      end
  end
end
```

Add to_hash and to_json to Availability
user
```ruby
require "json"

module NameChecker
  # Container class to represent the availability of a word on
  # a specific service.
  #
  #   Availability.new('twitter', false)
  #
  class Availability
    attr_reader :status, :service

    def initialize(service, status_input)
      @service = service.to_s
      @status = parse_status(status_input)
    end

    def to_s
      "#{service}: #{status}"
    end

    def available?
      status == "available"
    end

    def unavailable?
      status == "unavailable"
    end
    
    def unknown?
      status == "unknown"
    end

    def to_hash
      { service: service, status: status }
    end

    def to_json
      to_hash.to_json
    end

    def status=(status_input)
      @status ||= parse_status(status_input)
    end

    private 
      def parse_status(status_input)
        case status_input
        when true then "available"
        when false then "unavailable"
        else "unknown"
        end
      end
  end
end
```
assistant