Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jmespath

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jmespath

JMESPath implementation in javascript

  • 0.16.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.6M
decreased by-2.62%
Maintainers
1
Weekly downloads
 
Created

What is jmespath?

The jmespath npm package is a query language for JSON, allowing you to extract and manipulate data from complex JSON structures with ease. It provides a powerful and expressive syntax for querying and transforming JSON data.

What are jmespath's main functionalities?

Searching JSON data

This feature allows you to search through JSON data using JMESPath expressions. In this example, it searches for names of locations in the state of WA.

"search(jsonData, 'locations[?state == \"WA\"].name')"

Projection

Projection is used to extract a list of values from a JSON structure. This code sample demonstrates how to get a list of all location names.

"search(jsonData, 'locations[*].name')"

Functions

JMESPath supports a variety of functions to manipulate and transform data. This example uses the `length` function to count the number of locations.

"search(jsonData, 'length(locations)')"

Other packages similar to jmespath

Keywords

FAQs

Package last updated on 19 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc