> For the complete documentation index, see [llms.txt](https://docs.jetadmin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jetadmin.io/user-guide/data/computed-fields/formulas/parse-json-fields.md).

# Parse JSON Fields

Parse JSON to create new columns with the data you want

If your dataset has a field that contains data in a JSON format, you can parse that field to display the specific pieces of data you want in new columns. You can do this by creating a new custom field and then passing it a value that references the JSON field.&#x20;

Let's explain this more in-depth by using the following example.

Suppose you have a field that has JSON data like the following:

```javascript
{
  "fields": {
    "pricing": {
      "integerValue": "109"
    },
    "quantity": {
      "integerValue": "98"
    }
  }
}
```

Without changing anything, it will be displayed like this:

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F6xaF8dWaKPRWfwH2e5FH%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-03-16%20%D0%B2%2010.23.31.png?alt=media&amp;token=ae3316b7-b116-46de-98c4-2923fb32130d" alt=""><figcaption></figcaption></figure>

#### To parse this data and make it more readable, follow these steps:

1. Edit the data type for the field with your JSON data. It will be *Text* by default; change it to JSON.\
   Here you can also change how the data in this column is displayed within this field – as either text or as fields.

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FKKZtdKeCSiI2MnPn18hn%2FUntitled%20(1).gif?alt=media&amp;token=be52afd2-3d50-44fe-94a9-8f7508b7d1c3" alt=""><figcaption></figcaption></figure>

2. Create a new Computed Field with the data you want
   1. Click *Add computed column* in the table menu on the right
   2. Pass the correct value to your field:\
      \- Click the *ƒx Formula* button\
      \- Choose the field from your table that has your JSON data\
      \- Choose the JSON field and value that you need
   3. Give your column an appropriate name
   4. Adjust the data type for your field as necessary

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FTKptIs8gQpZCSt23a5vR%2FUntitled%20(2).gif?alt=media&amp;token=b6bc075c-9cff-48c5-94c5-f2022f318608" alt=""><figcaption></figcaption></figure>

3. (Optional) Hide the field with the JSON data by clicking on the slider next to the field name in the Table menu

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FHCxy7vswgG6buHsKrsKe%2FUntitled%20(3).gif?alt=media&amp;token=ad6f5548-ab56-46cc-92bc-c1a758d31b11" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jetadmin.io/user-guide/data/computed-fields/formulas/parse-json-fields.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
