GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - deckyard/deck-jsonpath: Query JSON values with RFC 9535 JSONPath, checked against the official compliance test suite

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples
examples
 
 
src
src
 
 
testdata/cts
testdata/cts
 
 
tools
tools
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
deck.toml
deck.toml
 
 
grimoire.toml
grimoire.toml
 
 

Repository files navigation

@deckyard/jsonpath

test Documentation release

RFC 9535 JSONPath queries for Jennifer, over json.Value. The whole RFC: name, wildcard, index, slice and filter selectors, descendant segments, comparisons and logic, and the functions length, count, match, search and value, with I-Regexp patterns. Every case of the official JSONPath Compliance Test Suite passes. Results come as values, as JSON Pointers for the json writers, or as normalized paths.

Documentation

Install

jvc add @deckyard/jsonpath

Or unpack src/ from a release archive (deckyard-jsonpath-<version>.tar.gz) into vendor/deckyard/jsonpath/.

Usage

use fs;
use io;
use json;
import "@deckyard/jsonpath/" as jsonpath;

def doc as json.Value init json.decode(fs.readString("store.json"));

for (def title in jsonpath.query($doc, "$..book[[email protected] < 10].title")) {
    io.printf("%s\n", json.asString($title));
}

def p as jsonpath.Path init jsonpath.compile("$..book[?search(@.author, 'Tolkien')]");
for (def m in jsonpath.find($doc, $p)) {
    io.printf("%s at %s\n", json.encode($m.value), $m.pointer);
}

Requirements

Jennifer 0.25.0 or newer, default or jennifer-tiny binary. No capability.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/jsonpath_test.j    # unit tests and the compliance suite
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

testdata/cts is the vendored compliance suite (BSD-2, see its README).

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

About

Query JSON values with RFC 9535 JSONPath, checked against the official compliance test suite

deckyard.github.io/deck-jsonpath/

Topics

deckyardi-regexpjennifer-deckjennifer-langjsonjsonpathqueryrfc9535

Resources

Readme
License

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.