
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@saasquatch/jsonata-paths-extractor
Advanced tools
A package for statically analysing JSONata expressions and returning object paths from the context that are likely used. Complete static analysis of JSONata is not attempted (and may not actually be feasible), so the results are considered best-effort.
A package for statically analysing JSONata expressions and returning object paths from the context that are likely used. Complete static analysis of JSONata is not attempted (and may not actually be feasible), so the results are considered best-effort.
Using npm or yarn the package can be installed
npm i @saasquatch/jsonata-paths-extractor
A single function is exported as the default export. The function accepts a JSONata expression as input and returns the paths found in the expression.
For more detail on behaviour, see test/paths.feature
Example usage:
import extractJSONataPaths from "@saasquatch/jsonata-paths-extractor";
const exampleJsonataExpression =
'example.jsonata.path = "a string" ? example.two : example[two="test"].name^(<three)';
const paths = extractJSONataPaths(exampleJsonataExpression);
// paths: ["/example/jsonata/path","/example/two","/example/name","/example/two","/example/name/three"]
The package contains a test suite that runs through expressions sourced from program conditions and the JSONata test suite. The results of these tests were autogenerated and reviewed, they should be used as a set of tests to ensure against regressions. The results of the test suite should only be modified after implementing improvements to the library.
Improvements should be documented in the feature file in addition to the automated tests.
FAQs
A package for statically analysing JSONata expressions and returning object paths from the context that are likely used. Complete static analysis of JSONata is not attempted (and may not actually be feasible), so the results are considered best-effort.
We found that @saasquatch/jsonata-paths-extractor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.