digestive-functors-aeson
digestive-functors-aeson copied to clipboard
Run digestive-functors against a JSON document
I'm struggling with validating an incoming JSON (newbie alert!). 1. Is there a typo in [this example](https://github.com/ocharles/digestive-functors-aeson/blob/88a5b684817d31018df2dcfe3666b0be597311f0/src/Text/Digestive/Aeson.hs#L36) in the docs? Do we really mean to pass `""` as the first...
``` > let form = "testBool" .: bool (Just True) > let mValue = decode "{}" :: Maybe Value > let Just v = mValue > (view, result) result Just...
The code: ``` data Item = { itemComment :: Data.Text.Text , itemAmount :: Int } itemForm :: Form Data.Text.Text IO Item itemForm = Item "commment" .: text Nothing "amount" .:...