Jaxon v1.0.10 Jaxon.Stream View Source

Link to this section Summary

Functions

Query all values of an array:

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

Link to this section Functions

Link to this function

query(bin_stream, query) View Source
query(Stream.t(), Jaxon.Path.t()) :: Stream.t()

Query all values of an array:

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

Query an object property:

iex> ~s({ "person": {"name": "Jose"} }) |> List.wrap() |> Jaxon.Stream.query([:root, "person", "name"]) |> Enum.to_list()
["Jose"]
Link to this function

query_value(query, acc, events) View Source