# JSON

## Module: [implementation](https://utca.knowledgator.com/framework-structure#implementation).datasources.json

***

***

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

Read JSON. Subclass of [**Action**](https://utca.knowledgator.com/core/action)**.** Type of [**Action**](https://utca.knowledgator.com/core/action)**\[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**](https://utca.knowledgator.com/core/action)**.** Type of [**Action**](https://utca.knowledgator.com/core/action)**\[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;

***

***
