Json response filtering using `jq`

Feature RequestImprovement
Hello. I’m wondering if it’s possible to implement response-filtering using jq. I’ve tried to develop the plugin myself, but it looks like the rust-backend is hardcoded to filter all json-data using the jsonpath plugin (in yaak/crates/yaak-plugins/src/manager.rs)
Here is the plugin source I tried to build, maybe this could be the starting point for a potential jq-filtering.
import type { PluginDefinition } from "@yaakapp/api";
import { jq } from "node-jq"
export const plugin: PluginDefinition = {
filter: {
name: "jq",
description: "Filter jq",
onFilter(_ctx, args) {
try {
const filtered = jq.run(args.filter, args.payload, {input: 'string'});
return { content: JSON.stringify(filtered, null, 2) };
} catch (err) {
return {
content: "",
error: `Invalid filter: ${err instanceof Error ? err.message : String(err)}`,
};
}
},
},
};
macOS2026.4.0