Jaxon.Stream.query

You're seeing just the function query, go back to Jaxon.Stream module for more information.
Link to this function

query(event_stream, query)

View Source

Specs

Query all values of an array:

iex> ~s({ "numbers": [1,2] })
...> |> Jaxon.Stream.from_binary()
...> |> Jaxon.Stream.query([:root, "numbers", :all])
...> |> Enum.to_list()
[1, 2]

Query an object property:

iex> ~s({ "person": {"name": "Jose"} })
...> |> Jaxon.Stream.from_binary()
...> |> Jaxon.Stream.query([:root, "person", "name"])
...> |> Enum.to_list()
["Jose"]