> For the complete documentation index, see [llms.txt](https://utca.knowledgator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utca.knowledgator.com/datasources/json.md).

# JSON

Actions for handling JSON files

## Module: [implementation](/framework-structure.md#implementation).datasources.json

***

***

## <mark style="color:green;">JSONRead</mark>

Read JSON. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], Dict\[str, Any]]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):**\
  Expected keys:
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to JSON file;

#### Returns:

* **Dict\[str, Any]:** \
  Expected keys:&#x20;
  * <mark style="color:red;">**"json"**</mark>**&#x20;(Any):** JSON data;

***

***

***

## <mark style="color:green;">JSONWrite</mark>

Write JSON. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], None]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):**\
  Expected keys:
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to JSON file;
  * <mark style="color:red;">**"json"**</mark>**&#x20;(Any):** JSON data;

***

***
