See [here](https://github.com/joneshf/purescript-option#how-to-decode-and-encode-json-with-optional-values-in-purescript-simple-json). Additionally, or alternatively, it might be good to have a `Writer` to better log errors and report to the user.