Skip to content

JSON File

Reads and writes data from a JSON file.

Categories: helpers

Type: jsonFile/v1


Actions

Read from File

Name: read

Reads data from a JSON file.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileTypeFile TypeSTRINGSELECTThe file type to choose.true
fileEntryFileFILE_ENTRYFILE_ENTRYThe object property which contains a reference to the JSON file to read from.true
isArrayIs ArrayBOOLEANSELECTThe object input is array?null
pathPathSTRINGTEXTThe path where the array is e.g ‘data’. Leave blank to use the top level object.null
pageSizePage SizeINTEGERINTEGERThe amount of child elements to return in a page.null
pageNumberPage NumberINTEGERINTEGERThe page number to get.null

Write to File

Name: write

Writes the data to a JSON file.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileTypeFile TypeSTRINGSELECTThe file type to choose.true
typeTypeSTRINGSELECTThe value type.null
sourceSource{}OBJECT_BUILDERThe object to write to the file.true
sourceSource[]ARRAY_BUILDERThe array to write to the file.true
filenameFilenameSTRINGTEXTFilename to set for binary data. By default, “file.json” will be used.true

Output

Type: FILE_ENTRY

Properties

NameTypeControl Type
extensionSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT
urlSTRINGTEXT