GitLab will be offline for essential maintenance from 22/08/25 - 25/08/25. During this time, GitLab will be read-only with some short periods of complete unavailability.
@@ -11,14 +11,14 @@ A Python script to load and filter a JSON file, showing the nested-key structure
...
@@ -11,14 +11,14 @@ A Python script to load and filter a JSON file, showing the nested-key structure
The first argument should be the JSON filename.
The first argument should be the JSON filename.
Following arguments are optional, and are one or more of:
The following filter arguments are optional and are one or more of:
+regex : any key in the path must match the regex (like "grep")
-`+regex` : any key in the path must match the regex (like "grep")
-regex : no key in the path can match the regex (like "grep -v")
-`-regex` : no key in the path can match the regex (like "grep -v")
$regex : the final key in the path must match the regex (note: you may have to
-`$regex` : the final key in the path must match the regex (note: you may have to escape the $ in your terminal)
escape the $ in your terminal)
-`^regex` : the first key in the path must match the regex
^regex : the first key in the path must match the regex
`regex` means Regular Expression. While you can use simple strings, these will be interpreted as regular expressions. If you are not familiar with these, you might want to start at https://en.wikipedia.org/wiki/Regular_expression .
Requires various standard Python modules that, if not available, are easily
Requires various standard Python modules that, if not available, are easily