# error: json: cannot unmarshal null into Go value of type string

- **ID:** `go/json-cannot-unmarshal-null-into-string`
- **Domain:** go
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The JSON data contains a null value for a field that is expected to be a string, but the struct field is not a pointer or does not handle null.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.17 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use a pointer to string (*string) for nullable fields.
   ```
2. **** (90% success)
   ```
   Implement a custom UnmarshalJSON method to handle null.
   ```

## Dead Ends

- **** — This loses type safety and may cause runtime type assertions to fail. (80% fail)
- **** — This is inefficient and may alter the meaning of the data. (70% fail)
