jmes v0.1.0 JMES View Source
JMES implements JMESPath, a query language for JSON.
It passes the official compliance tests.
See jmespath.org.
Link to this section Summary
Functions
Evaluates a JMESPath expression against some data
Link to this section Types
Link to this type
ast() View Source
Link to this type
error()
View Source
error()
View Source
error() :: {:error, any()}
error() :: {:error, any()}
Link to this type
expr() View Source
Link to this section Functions
Link to this function
search(expr, data) View Source
Evaluates a JMESPath expression against some data.
The expression can be a string, a charlist, or an Abstract Syntax Tree (see
JMES.Parser.parse/1
).
Examples
iex> JMES.search("[name, age]", %{"name" => "Alice", "age" => 28, "place" => "wonderland"})
{:ok, ["Alice", 28]}