# JSON Escape Action

The JSON Escape Action node can be used to escape a given JSON payload.

You can input the payload manually as plain text, or by using the wildcards [{node.result.}](https://docs.helmut.de/helmut4-releases/v4.9.0/helmut4-components/streamdesigner/wildcards/result-or-return-wildcards-2/node-result) or [{stream.last\_result}](https://docs.helmut.de/helmut4-releases/v4.9.0/helmut4-components/streamdesigner/wildcards/result-or-return-wildcards-2/stream-last_result).

Alternatively, the payload can be read from a JSON file in storage using the wildcard [{file.content.?}](https://docs.helmut.de/helmut4-releases/v4.9.0/helmut4-components/streamdesigner/wildcards/file-related-wildcards-5/file-content).

Please ensure that the input JSON payload is valid.

<figure><img src="https://3741212992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJazOaknIWynmzOb8kuKL%2Fuploads%2FfOBOapkvLCT5AZ29xPN9%2Fimage.png?alt=media&#x26;token=9b77f58c-f987-4541-a2ed-cfe2684e3885" alt="" width="351"><figcaption><p>JSON Escape Action</p></figcaption></figure>

### Example

Input

```json
{
  "id": 12345,
  "name": "Sample User",
  "email": "sample.user@example.com",
  "isActive": true,
  "roles": [
    "admin",
    "editor"
  ],
  "preferences": {
    "notifications": true,
    "theme": "dark",
    "language": "en"
  }
}

```

Output

```json
{\n
  "id": 12345,\n
  "name": "Sample User",\n
  "email": "sample.user@example.com",\n
  "isActive": true,\n
  "roles": [\n
    "admin",\n
    "editor"\n
  ],\n
  "preferences": {\n
    "notifications": true,\n
    "theme": "dark",\n
    "language": "en"\n
  }\n
}\n

```
