omdsh-dev/dsh-tool-json: DSH JSON Query Tool Plugin
`omdsh-dev/dsh-tool-json` is a lightweight, read-only JSON query tool developed for DSH plugins, licensed under the MIT License. It provides a tool named `json` that precisely extracts fields from JSON values or strings using a custom JMESPath-inspired path subset, avoiding the confusion of string searching or the high cost of a full query engine. Core features support dot notation access, array indexing, access to keys with special characters, and array wildcard projection. The plugin intentionally limits query scope, does not support filters, pipes, function calls, or object field enumeration, and multi-level wildcards return nested arrays rather than flattened results. Regarding security, it employs a hand-written parser to avoid `eval`, prevents prototype chain pollution, and sets resource limits on query length, depth, and element count. Installation requires adaptation.
Read More