---
title: Headers and Values to Receive JSON-Formatted Responses
description: Specify HTTP headers and associated values that trigger JSON-formatted errors to be returned.
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:org.forgerock.agents.config.json.header
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/org.forgerock.agents.config.json.header.html
---

# Headers and Values to Receive JSON-Formatted Responses

Specify HTTP headers and associated values that trigger JSON-formatted errors to be returned.

Format:

`org.forgerock.agents.config.json.header[Header]=Value`

Use with [HTTP Return Code for JSON-Formatted Responses](org.forgerock.agents.config.json.response.code.html), as follows:

`org.forgerock.agents.config.json.header[enableJsonResponse]=true`

`org.forgerock.agents.config.json.response.code=202`

Performing a GET operation that matches the example triggers an HTTP result code `202 Accepted`, and a JSON response containing `302 Found`.

Default: Empty

|                    |                                                                                                 |
| ------------------ | ----------------------------------------------------------------------------------------------- |
| Property name      | `org.forgerock.agents.config.json.header`   Introduced in Web Agent 4.x                         |
| Function           | JSON-formatted response                                                                         |
| Type               | String Map                                                                                      |
| Bootstrap property | No                                                                                              |
| Required property  | No                                                                                              |
| Restart required   | No                                                                                              |
| AM console         | Tab: `Miscellaneous (From AM 7)`Title: `Headers and Values to Receive JSON-Formatted Responses` |
