Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 8, 2024 via pnpm

jmespath 0.14.1

JMESPath implementation in javascript
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
1
license
1
Apache 2.0
Package created
25 Apr 2014
Version published
19 Feb 2016
Maintainers
1
Total deps
1
Direct deps
0
License
UNKNOWN

Issues

2

1 high severity issue

high
Recommendation: Validate that the package complies with your license policy
via: jmespath@0.14.1
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: jmespath@0.14.1
Collapse
Expand

Licenses

Apache 2.0

Invalid
Not OSI Approved
1 Packages, Including:
jmespath@0.14.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of jmespath 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does jmespath do?

Jmespath is a powerful JavaScript library designed to work as a query language for JSON. Its main purpose is to allow the transformation of JSON documents into other JSON documents using JMESPath expressions. It's a beneficial tool when dealing with complex JSON data structures. Supporting a wide variety of operations, from simple value retrieval to more complex computations, it's an excellent tool for efficiently working with JSON data.

How do you use jmespath?

The use of jmespath in your JavaScript project is pretty straightforward. First, ensure you have it installed in your project via npm. To use it, you would require the library and then call jmespath.search function. Here are some code examples showcasing its usage:

var jmespath = require('jmespath');

//simple value retrieval
jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar.baz[2]") //returns: 2

//fetching a nested object
jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar") //returns: { baz: [ 0, 1, 2, 3, 4 ] }

//retrieving values from arrays
jmespath.search({"foo": [{"first": "a", "last": "b"},{"first": "c", "last": "d"}]},"foo[*].first") //returns: [ 'a', 'c' ]

//conditions
jmespath.search({"foo": [{"age": 20}, {"age": 25},{"age": 30}, {"age": 35},{"age": 40}]},"foo[?age > `30`]") //returns: [ { age: 35 }, { age: 40 } ]

Where are the jmespath docs?

For in-depth information about how to build queries and other functionalities provided by jmespath, you can read the detailed JMESPath Tutorial which provides a comprehensive walk-through of the language's capabilities. A complete list of libraries for various programming languages can be found on the official JMESPath libraries page. For the full specification of the JMESPath language, please refer to the official JMESPath site. These resources are excellent starting points to fully leverage the potential of the JMESPath query language in your JavaScript applications.