convert jq to plugin