jelly

Package Version Hex Docs Latest CI

JSON parsing library for arbitrary JSON structures

gleam add jelly@1
import gleam/io
import jelly

pub fn main() {
  // {
  //   "foo": "bar"
  // }
  let assert Ok(json) = jelly.parse("{ \"foo\": \"bar\" }")
  let assert Ok(jelly.String(foo)) = jelly.path(json, "foo")
  io.print(foo) // "bar"
}

Further documentation can be found at https://hexdocs.pm/jelly.

Development

gleam run   # Run the project
gleam test  # Run the tests
Search Document