mlms13 / bs-decode

Type-safe JSON decoding for ReasonML and OCaml
https://mlms13.github.io/bs-decode/docs/what-and-why
MIT License
103 stars 18 forks source link

Add dictJson and arrayJson #125

Closed mlms13 closed 1 year ago

mlms13 commented 1 year ago

Currently, our dict and array decoders expect to also decode the inner values, but there are cases where you may want to preserve the inner JSON. Also, we could probably rewrite the existing dict and array (and maybe at and field) in terms of these new functions, and it might make them quite a bit simpler to understand.