Skip to content

Add JSONPath querying over parsed JSON#259

Merged
JE-Chen merged 2 commits into
devfrom
feat/jsonpath-batch
Jun 20, 2026
Merged

Add JSONPath querying over parsed JSON#259
JE-Chen merged 2 commits into
devfrom
feat/jsonpath-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 20, 2026

Copy link
Copy Markdown
Member

Data batch (from multi-agent web research; verified absent). Full layers + tests + EN/Zh v51 docs + README.

Feature (utils/jsonpath, pure-stdlib re)

  • json_query / json_query_one / json_extract: a JSONPath subset over parsed JSON — $, .key, [n]/[-n], */[*], .. recursive descent, [?(@.k op v)] filters. The executor's path walker only split on . and indexed, so array-bearing API/DB responses were awkward to extract from; json_extract runs a {key: path} mapping into a flat dict.
  • Executor AC_json_query / AC_json_extract (data/mapping as object or JSON string); MCP ac_*; Builder under Data.

Verification

  • 11 tests pass (dotted/index/neg-index, wildcard, filter, recursive descent, query_one default, extract mapping, quoted key, no-match empty, executor round-trip, wiring, facade); ruff clean; radon no CC≥C; bandit clean; PySide6-free.
  • Rebased onto dev after the multi-channel notify (Add multi-channel webhook notifications (Slack/Discord/Teams/raw) #258) merge.

@codacy-production

codacy-production Bot commented Jun 20, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 73 complexity · 0 duplication

Metric Results
Complexity 73
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 5e54e60 into dev Jun 20, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/jsonpath-batch branch June 20, 2026 07:24
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant