JSON

Actions for handling JSON files

Module: implementation.datasources.json



JSONRead

Read JSON. Subclass of Action. Type of Action[Dict[str, Any], Dict[str, Any]]


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to JSON file;

Returns:

  • Dict[str, Any]: Expected keys:

    • "json" (Any): JSON data;




JSONWrite

Write JSON. Subclass of Action. Type of Action[Dict[str, Any], None]


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to JSON file;

    • "json" (Any): JSON data;



Last updated