# Parse JSON

**Introduction**&#x20;

This step converts a JSON string into a structured format based on a specified schema, enabling the use of JSON content within automations.

**Configuration**

1. **Content**: Input the JSON string that needs to be parsed. This is a required field.
2. **Schema**: Define the schema that describes the expected structure and type of the JSON content. The schema should match the structure of the JSON string to be parsed. This is a required field.

**Outputs**

* **Content**: The parsed JSON content, structured according to the specified schema. If the JSON string does not match the schema, an error is generated.

**Usage**&#x20;

Ideal for processing and manipulating JSON data retrieved from APIs, webhooks, or other sources, allowing for the extraction and use of specific data elements within automations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexy.bot/modules/scripting/steps/parse-json.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
