Gleam JSON encoders/decoders codegen using Glerd
gleam add --dev glerd glerd_json
Use Glerd
import glerd_json
import glerd_gen
pub fn main() {
glerd_gen.record_info
|> glerd_json.generate("src", _)
}
gleam run -m my_module
Further documentation can be found at https://hexdocs.pm/glerd_json.
gleam test # and then commit generated file