Login
Back to bricks list
Introduction Version

JSON Dict exporter

EXPORTER
Typing name :  TASK.gws_core.JSONExporter Brick :  gws_core v

Export JSON Dict to a file

Generic task that take a file as input and return a resource

Override the export_to_path method to export the resource into a File

Input

JSON Dict
Resource that holds a JSON dict

Output

File

Configuration

file_name

Optional

Destination file name in the store

Type : string

file_format

OptionalAdvanced parameter

File format

Type : stringDefault value : json

prettify

OptionalAdvanced parameter

True to indent and prettify the JSON file, False otherwise

Type : bool