Elixir wrapper for jq.
Note: you must have jq installed and avalible in your $PATH
- Install jq
brew install jq
- Other jq installation options
- add
jq
to your list of dependencies inmix.exs
:
def deps do
[
{:jq, "~> 1.0"}
]
end
iex> JQ.query(%{key: "value"}, ".key")
{:ok, "value"}
iex> JQ.query!(%{key: "value"}, ".key")
"value"