Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Feb 28, 2024 via pnpm

jmespath 0.16.0

JMESPath implementation in javascript
Package summary
Share
0
issues
1
license
1
Apache-2.0
Package created
25 Apr 2014
Version published
19 Jan 2022
Maintainers
1
Total deps
1
Direct deps
0
License
Apache-2.0

Issues

0
This package has no issues

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
jmespath@0.16.0
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.