pguillory / libjq-elixir

Elixir bindings for libjq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Libjq

Elixir bindings for libjq, library form of the popular command-line JSON processing tool jq.

Example

iex> program = Libjq.compile(".x")
iex> json = ~S[ {"x": 12345} ]
iex> Libjq.run(program, json)
[12345]

Installation

The system needs to have libjq installed. On OS/X, it comes with jq:

brew install jq

On Linux, use the libjq-dev package:

apt install libjq-dev

Finally, add this to your project's mix.exs:

def deps do
  [
    {:libjq, "~> 0.1.0"}
  ]
end

About

Elixir bindings for libjq


Languages

Language:C 58.6%Language:Elixir 36.6%Language:Makefile 4.8%