jq v1.0.0 JQ View Source

Provides capability to run jq queries on elixir structures. jq docs

Examples

iex> JQ.query(%{key: "value"}, ".key")
{:ok, "value"}

iex> JQ.query!(%{key: "value"}, ".key")
"value"

Link to this section Summary

Link to this section Functions

Link to this function

query(payload, query, options \\ []) View Source
query(any(), String.t(), list()) :: {:ok, any()} | {:error, :cmd | :unknown}

Link to this function

query!(payload, query, options \\ []) View Source
query!(any(), String.t(), list()) :: any()