Jp

JMESPath JSON processor

javimosch 6285a00 519 B Updated

File contents

jp Plugin

Query and transform JSON data using JMESPath expressions.

Basic Usage

# Query JSON from stdin
echo '{"foo": {"bar": "hello"}}' | sc jp data query --expression "foo.bar"

# Query from file
sc jp data query "foo.bar" data.json

# Passthrough
sc jp _ _ -- --pretty data.json

Common Patterns

  • foo.bar - Nested field access
  • foo[*].bar - Project list field
  • foo[?bar==\baz`]` - Filter
  • foo.{x: bar, y: baz} - Multi-select

javimosch/supercli/tree/main/plugins/jp/skills/quickstart commit 6285a009bd

Frequently asked questions

npx skillmds@latest add javimosch/jp