[][src]Function json_query::run

pub fn run(program: &str, data: &str) -> Result<String, String>
Deprecated since 0.3.1:

This is the final release of json-query. Future releases will be published as jq-rs.

Run a jq program on a blob of json data.

In the case of failure to run the program, feedback from the jq api will be available in the supplied String value. Failures can occur for a variety of reasons, but mostly you'll see them as a result of bad jq program syntax, or invalid json data.