Skip to content

♻️ refacto(jq): isolate json conversion filter#262

Open
jfbus wants to merge 1 commit into
mainfrom
jq_json_split
Open

♻️ refacto(jq): isolate json conversion filter#262
jfbus wants to merge 1 commit into
mainfrom
jq_json_split

Conversation

@jfbus

@jfbus jfbus commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

The jq filter does a JSON to/from conversion to convert the input to a json.RawMessage format supported by the gojq package.

When multiple jq filters are applied, this leads to redundant/useless conversions. This PR isolates the JSON conversion to a separate filter that is applied before jq filters..

Type of Change

Please check the relevant option(s):

  • 🐛 Bug fix
  • ✨ New feature
  • 🧹 Code cleanup or refactor
  • 📝 Documentation update
  • 🔧 Build or CI-related change
  • 🔒 Security fix
  • Other (specify):

How Has This Been Tested?

Please describe the test strategy:

  • Manual testing
  • Unit tests
  • Integration tests
  • Not tested yet

Checklist

  • I have followed the Contributing Guidelines
  • I have added tests or explained why they are not needed
  • I have updated relevant documentation (README, examples, etc.)
  • My changes follow the Conventional Commits specification
  • My commits include appropriate Gitmoji

Additional Context

@github-actions github-actions Bot added the kind/refactoring Refactoring or internal changes label Jul 15, 2026
@github-actions

Copy link
Copy Markdown

🔖 auto-tagging: Adding label "kind/refactoring"

@github-actions

Copy link
Copy Markdown

No diff in reference doc 😀

@jfbus jfbus marked this pull request as ready for review July 15, 2026 08:01
@jfbus jfbus requested a review from a team July 15, 2026 08:01
@github-actions

Copy link
Copy Markdown

Binary size: 82.2MB => 82.3MB (change +4KB, +0.0%) 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactoring Refactoring or internal changes

Development

Successfully merging this pull request may close these issues.

1 participant