json¶
Hook for reading and writing json. Hook reads from path if no data field is provided, otherwise it writes the data to path.
Inputs¶
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| path | str | True | The file path to put read or write to. | |
| data | Union[dict, list, str] | None | False | Map/list or renderable string to a map/list key to write. |
Arguments¶
| Position | Argument | Type |
|---|---|---|
| 1 | path | str |
| 2 | data | Union[dict, list, str] |
Returns¶
Union[dict, str]