---
name: "up.Response.prototype.json"
area: "API"
kind: "Property"
parent: "up.Response class"
url: "https://unpoly.com/api/up.Response.prototype.json"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Response class](https://unpoly.com/api/up.Response.md)</nav>

# up.Response.prototype.json

The response body parsed from JSON.

The parsed JSON object is cached with the response object, so multiple accesses will call `JSON.parse()` only once.

> #### Note
>
> This method can only parse regular JSON values. [Relaxed JSON](https://unpoly.com/api/relaxed-json.md) is not supported here.

## Example {#example}

```js
let response = await up.request('/profile.json')
console.log("User name is " + response.json.name)
```

---

## Value {#value}

### json {#json}

Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects)

