Thanks to visit codestin.com
Credit goes to github.com

Skip to content

LilyRose2798/jasper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jasper

Credit to kwando for the decoder and to_json functions. If the querying part of this library is not required, I recommend using their package json_value instead.

Package Version Hex Docs

gleam add jasper
import 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

About

Utilities for parsing and querying JSON data

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages