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
- Description
A JSON object.
- Name
query
- Description
A JSON query. See the jq documentation.
Output
- Name
value
- Description
The result of the
jq
query.
Example using jq
output "message" {
value = jq("{ \"message\": \"Hello world!\" }", ".message")
}
> message: Hello world!