logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

jsonpath_ng - Search JSONPath into JSON files.

Description

       usage: jsonpath_ng [-h] expression [file ...]

       Search JSON files (or stdin) according to a JSONPath expression.

   positionalarguments:
       expression
              A JSONPath expression.

       file   Files to search (if none, searches stdin)

   options:-h, --help
              show this help message and exit

              Quick JSONPath reference (see more at https://github.com/kennknowles/python-jsonpath-rw)

              atomics:

       $      - root object

       `this` - current object

              operators:

       path1.path2
              - same as xpath /

       path1|path2
              - union

       path1..path2
              - somewhere in between

              fields:

       fieldname
              - field with name

       *      - any field

              [_start_?:_end_?] - array slice [*]             - any array index

jsonpath_ng 1.5.3                                   July 2023                                     JSONPATH_NG(1)

Name

       jsonpath_ng - Search JSONPath into JSON files.

See Also