Skip to content

Commit

Permalink
fix typos in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Apr 2, 2020
1 parent 51f6286 commit fb96b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ Query a binary JSON stream:

```elixir
iex> stream = [~s({"jaxon":"rocks","array":[1,2]})]
iex> stream |> Jaxon.Stream.from_eumerable() |> Jaxon.Stream.query([:root, "array", :all]) |> Enum.to_list()
iex> stream |> Jaxon.Stream.from_enumerable() |> Jaxon.Stream.query([:root, "array", :all]) |> Enum.to_list()
[1, 2]
```

Query a binary JSON stream using JSON path expressions:

```elixir
iex> stream = [~s({"jaxon":"rocks","array":[1,2]})]
iex> stream |> Jaxon.Stream.from_eumerable() |> Jaxon.Stream.query(Jaxon.Path.parse!("$.array[*]")) |> Enum.to_list()
iex> stream |> Jaxon.Stream.from_enumerable() |> Jaxon.Stream.query(Jaxon.Path.parse!("$.array[*]")) |> Enum.to_list()
[1, 2]
```

Expand All @@ -63,7 +63,7 @@ Query a large file without holding the whole file in memory:
```elixir
"large_file.json"
|> File.stream!()
|> Jaxon.Stream.from_eumerable()
|> Jaxon.Stream.from_enumerable()
|> Jaxon.Stream.query([:root, "users", :all, "id"])
|> Enum.to_list()
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defmodule Jaxon.MixProject do
{:poison, ">= 0.0.0", only: [:bench]},
{:jason, ">= 0.0.0", only: [:bench, :test, :docs]},
{:jiffy, ">= 0.0.0", only: :bench},
{:ex_doc, ">= 0.0.0", only: :docs},
{:ex_doc, ">= 0.0.0", only: [:docs, :dev]},
{:dialyxir, "~> 1.0.0-rc.7", only: [:test, :dev], runtime: false},
{:inch_ex, github: "rrrene/inch_ex", only: [:docs, :test]},
{:elixir_make, "~> 0.4", runtime: false},
Expand Down

0 comments on commit fb96b42

Please sign in to comment.