An Erlang NIF for jq.
-
Build
$ rebar3 compile
-
Have a try
$ rebar3 shell ... 1> jq:parse(<<".a">>, <<"{\"b\": 1}">>). {ok,[<<"null">>]} 2> jq:parse(<<".a">>, <<"{\"a\": {\"b\": {\"c\": 1}}}">>). {ok,[<<"{\"b\":{\"c\":1}}">>]} 3> jq:parse(<<".a|.[]">>, <<"{\"a\": [1,2,3]}">>). {ok,[<<"1">>,<<"2">>,<<"3">>]}