Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Budibase Helm Bot cc8a16a1e8 Helm Release: 1.2.36 4 years ago
..
artifacts Helm Release: 1.2.36 4 years ago
test Helm Release: 1.2.36 4 years ago
.eslintrc Helm Release: 1.2.36 4 years ago
.npmignore Helm Release: 1.2.36 4 years ago
.travis.yml Helm Release: 1.2.36 4 years ago
BASELINE Helm Release: 1.2.36 4 years ago
Gruntfile.js Helm Release: 1.2.36 4 years ago
LICENSE Helm Release: 1.2.36 4 years ago
README.md Helm Release: 1.2.36 4 years ago
bower.json Helm Release: 1.2.36 4 years ago
g.sh Helm Release: 1.2.36 4 years ago
index.html Helm Release: 1.2.36 4 years ago
james.html Helm Release: 1.2.36 4 years ago
jmespath.js Helm Release: 1.2.36 4 years ago
jp.js Helm Release: 1.2.36 4 years ago
l.js Helm Release: 1.2.36 4 years ago
package.json Helm Release: 1.2.36 4 years ago
perf.js Helm Release: 1.2.36 4 years ago
reservedWords.json Helm Release: 1.2.36 4 years ago

README.md

jmespath.js

Build Status

jmespath.js is a javascript implementation of JMESPath, which is a query language for JSON. It will take a JSON document and transform it into another JSON document through a JMESPath expression.

Using jmespath.js is really easy. There's a single function you use, jmespath.search:

> var jmespath = require('jmespath');
> jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar.baz[2]")
2

In the example we gave the search function input data of {foo: {bar: {baz: [0, 1, 2, 3, 4]}}} as well as the JMESPath expression foo.bar.baz[2], and the search function evaluated the expression against the input data to produce the result 2.

The JMESPath language can do a lot more than select an element from a list. Here are a few more examples:

> jmespath.search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar")
{ baz: [ 0, 1, 2, 3, 4 ] }

> jmespath.search({"foo": [{"first": "a", "last": "b"},
                           {"first": "c", "last": "d"}]},
                  "foo[*].first")
[ 'a', 'c' ]

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

More Resources

The example above only show a small amount of what a JMESPath expression can do. If you want to take a tour of the language, the best place to go is the JMESPath Tutorial.

One of the best things about JMESPath is that it is implemented in many different programming languages including python, ruby, php, lua, etc. To see a complete list of libraries, check out the JMESPath libraries page.

And finally, the full JMESPath specification can be found on the JMESPath site.