All Projects → jmespath → jmespath.rs

jmespath / jmespath.rs

Licence: MIT license
Rust implementation of JMESPath, a query language for JSON

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to jmespath.rs

Cql
CQL: Categorical Query Language implementation in Haskell
Stars: ✭ 132 (+57.14%)
Mutual labels:  query-language
cql
Clincal Quality Language Specification
Stars: ✭ 16 (-80.95%)
Mutual labels:  query-language
vm
The mm-ADT Virtual Machine
Stars: ✭ 29 (-65.48%)
Mutual labels:  query-language
fat ecto
Query mechanism for Ecto
Stars: ✭ 20 (-76.19%)
Mutual labels:  query-language
grafito
Portable, Serverless & Lightweight SQLite-based Graph Database in Arturo
Stars: ✭ 95 (+13.1%)
Mutual labels:  query-language
freebase-mql
A review of the deprecated Freebase knowledge base and Metaweb Query Language (MQL). A brief comparison of MQL and GraphQL.
Stars: ✭ 41 (-51.19%)
Mutual labels:  query-language
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 120 (+42.86%)
Mutual labels:  query-language
jmespath.swift
Swift implementation of JMESPath, the JSON query language
Stars: ✭ 29 (-65.48%)
Mutual labels:  jmespath
kql
Kirby's Query Language API combines the flexibility of Kirby's data structures, the power of GraphQL and the simplicity of REST.
Stars: ✭ 120 (+42.86%)
Mutual labels:  query-language
viziquer
Tool for Search in Structured Semantic Data
Stars: ✭ 12 (-85.71%)
Mutual labels:  query-language
restish
Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in
Stars: ✭ 453 (+439.29%)
Mutual labels:  jmespath
djaq
Django queries
Stars: ✭ 54 (-35.71%)
Mutual labels:  query-language
qcert
Compilation and Verification of Data-Centric Languages
Stars: ✭ 50 (-40.48%)
Mutual labels:  query-language
Emuto
manipulate JSON files
Stars: ✭ 180 (+114.29%)
Mutual labels:  query-language
hdq
HTML DOM Query Language for Go+
Stars: ✭ 28 (-66.67%)
Mutual labels:  query-language
Ldflex
A JavaScript DSL for querying Linked Data on the Web
Stars: ✭ 123 (+46.43%)
Mutual labels:  query-language
weedow-searchy
Automatically exposes web services over HTTP to search for Entity-related data using a powerful query language
Stars: ✭ 21 (-75%)
Mutual labels:  query-language
joern
Open-source code analysis platform for C/C++/Java/Binary/Javascript/Python/Kotlin based on code property graphs
Stars: ✭ 968 (+1052.38%)
Mutual labels:  query-language
xquery-power
A list of resources built on or with XQuery
Stars: ✭ 25 (-70.24%)
Mutual labels:  query-language
miniql
A tiny JSON-based query language inspired by GraphQL
Stars: ✭ 121 (+44.05%)
Mutual labels:  query-language

JMESPath for Rust

Rust implementation of JMESPath, a query language for JSON.

Documentation

Installing

This crate is on crates.io and can be used by adding jmespath to the dependencies in your project's Cargo.toml.

[dependencies]
jmespath = "^0.3.0"

If you are using a nightly compiler, or reading this when specialization in Rust is stable (see rust#31844), then enable the specialized feature to switch on usage of specialization to get more efficient code:

[dependencies.jmespath]
version = "^0.3.0"
features = ["specialized"]

Examples

extern crate jmespath;

let expr = jmespath::compile("foo.bar").unwrap();

// Parse some JSON data into a JMESPath variable
let json_str = r#"{"foo": {"bar": true}}"#;
let data = jmespath::Variable::from_json(json_str).unwrap();

// Search the data with the compiled expression
let result = expr.search(data).unwrap();
assert_eq!(true, result.as_boolean().unwrap());
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].