Adding ToJSON instance for Empty
Making a special case for HashMap types parsed only from HTTP headers