# gleerup
Simple [Syrup](https://github.com/ocapn/syrup) encoder and decoder for Gleam.
[](https://hex.pm/packages/gleerup)
[](https://hexdocs.pm/gleerup/)
```sh
gleam add gleerup
```
```gleam
import gleerup
pub fn main() -> Nil {
let input = <<"{3\"age30+4\"name5\"Alice7\"another[1+2+3+]7\"isAlivet}">>
let result = gleerup.decode(input) |> default_value
assert gleerup.dictionary(
dict.from_list([
#(gleerup.str("age"), gleerup.int(30)),
#(gleerup.str("name"), gleerup.str("Alice")),
#(
gleerup.str("another"),
gleerup.sequence([
gleerup.int(1),
gleerup.int(2),
gleerup.int(3),
]),
),
#(gleerup.str("isAlive"), gleerup.bool(True)),
]),
)
== result
}
```
Further documentation can be found at <https://hexdocs.pm/gleerup>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```