blob: 51287edc76a25509892fa15f76f8c724378a044e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module Json
( jsonObject
) where
import Web.Scotty (json, ActionM)
import qualified Data.Aeson.Types as Json
import qualified Data.HashMap.Strict as M
import Data.Text (Text)
jsonObject :: [(Text, Json.Value)] -> ActionM ()
jsonObject = json . Json.Object . M.fromList
|