import-from-json-file
Last updated
import-from-json-file adaptor imports data from a file in JSON format.
You can use the filter parameter to slice, filter, map and transform structured data. This adaptor imports the JSON file into Data-flo to make it available to other adaptors for processing.
json
Type: file
Required: Yes
A file in JSON format.
filter
Type: text
Required: No
An optional JQ filter.
data
Type: datatable
Data read from the file.
json: person.json
filter: null (empty)
data:
-> Imported the json file person.json into Data-flo.
json: person.json
filter: {name, email}
data:
-> Filtered the json data to only get the name and email from the json file.
Enables users to import files in JSON format for further processing and transformation in Data-flo
Last updated
{
"user": "Alice",
"age": 30,
"email": "alice@example.com",
"city": "New York"
}{
"user": "Alice",
"email": "alice@example.com"
}