aeson-extra-0.3.2.0: Extra goodies for aeson
Data.Aeson.Extra.TH
Description
In addition to mkValue and mkValue' helpers, this module exports Lift Value orphan instance for aeson <0.11
mkValue
mkValue'
Lift
Value
Synopsis
mkValue :: String -> Q Exp Source
Create a Value from string representation.
This is useful in tests.
Since: aeson-extra-0.3.1.0
mkValue' :: String -> Q Exp Source
Like mkValue, but replace single quotes with double quotes before.
> $(mkValue' "{'a': 2 }") Object (fromList [("a",Number 2.0)])