Skip to main content

Query JSON using SQL

Query a JSON using SQL. This Wrk Action uses SQLite syntax when querying.

Application

  • Text

Inputs (what you have)

NameDescriptionData TypeRequired?Example
JSON textJSON text you would like to query.Text (Long)Yes{“Col1”:”value1”,”Col2”:”value2”}
SQL queryA SQL query to perform on the provided JSON. Your primary table will always be referenced as CSV. Example: Select * from CSVText (Long)YesSelect * from CSV
Flatten nested JSON?Convert nested JSON objects to columns. If false, will leaved nested objected as JSONTrue/FalseNotrue
Columns do not have headers?If selected, the headers will be referred to as Col1, Col2, etcTrue/FalseNo

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Output CSVOutput CSV fileFileYes
Output JSONJSON output of the query resultText (Long)No
Total number of rowsThe total number of rows in the output CSVNumberNo

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Examples:

  • Examples to come