---
title: "non-pointer-unmarshal"
description: "Detect non-pointer decoding and unmarshalling destinations."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# non-pointer-unmarshal

**Default severity:** `error`

JSON and XML decoding APIs require a pointer destination so they can populate
the supplied value.

## Bad

```go
json.Unmarshal(data, value)
```

## Good

```go
json.Unmarshal(data, &value)
```

Source: https://strider.gempir.com/analyzers/non-pointer-unmarshal/index.mdx
