jasper
gleam add jasperimport gleam/io
import jasper.{String, Root, Key, Index}
pub fn main() {
let assert Ok(json) = jasper.parse("{ \"foo\": [1, true, \"hi\"] }")
let assert Ok(String(str)) = jasper.query(json, Root |> Key("foo") |> Index(2))
io.println(str)
}Further documentation can be found at https://hexdocs.pm/jasper.
Development
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell