Standard Library JSON Functions
function
jq
The jq function allows slicing, filtering, and mapping JSON data.
See the jq documentation for more details.
Inputs
- Name
decoded_json- Required
- optional
- Type
- string | object
- Description
A JSON object.
- Name
query- Required
- optional
- Type
- string
- Description
A JSON query. See the jq documentation.
Output
- Name
value- Type
- array[string]
- Description
The result of the
jqquery.
Example using jq
output "message" {
value = jq("{ \"message\": \"Hello world!\" }", ".message")
}
> message: Hello world!