--- title: JSON Operations slug: /data-operations --- import Icon from "@site/src/components/icon"; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import PartialParams from '@site/docs/_partial-hidden-params.mdx'; import PartialCurlyBraces from '@site/docs/_partial-escape-curly-braces.mdx'; :::tip Prior to Langflow 1.9.0, this component was named **Data Operations**. ::: The **JSON Operations** component performs operations on [`JSON`](/data-types#json) objects, including extracting, filtering, and editing keys and values in the `JSON`. For all options, see [Available data operations](#available-data-operations). The output is a new `JSON` object containing the modified data after running the selected operation. ## Use the JSON Operations component in a flow The following example demonstrates how to use a **JSON Operations** component in a flow using data from a webhook payload: 1. Create a flow with a **Webhook** component and a **JSON Operations** component, and then connect the **Webhook** component's output to the **JSON Operations** component's **JSON** input. All operations in the **JSON Operations** component require at least one `JSON` input from another component. If the preceding component doesn't produce `JSON` output, you can use another component, such as the [**Type Convert** component](/type-convert), to reformat the data before passing it to the **JSON Operations** component. Alternatively, you could consider using a component that is designed to process the original data type, such as the [**Parser** component](/parser) or [**Table Operations** component](/dataframe-operations). 2. In the **Operations** field, select the operation you want to perform on the incoming `JSON`. For this example, select the **Select Keys** operation. :::tip You can select only one operation. If you need to perform multiple operations on the data, you can chain multiple **JSON Operations** components together to execute each operation in sequence. For more complex multi-step operations, consider using a component like the [**Smart Transform** component](/smart-transform). ::: 3. Under **Select Keys**, add keys for `name`, `username`, and `email`. Click