Safe Haskell | None |
---|---|
Language | Haskell2010 |
Currently EJson functionality is built on top of the
Value
type.
Functions are written to convert back and forth between
EJsonValue
and Value
.
This has some negative impact on performance, but aids simplicity.
Documentation
data EJsonValue Source
EJObject !(HashMap Text EJsonValue) | |
EJArray !(Vector EJsonValue) | |
EJString !Text | |
EJNumber !Scientific | |
EJBool !Bool | |
EJDate !EpochTime | |
EJBinary !ByteString | |
EJUser !Text !EJsonValue | |
EJNull |
Eq EJsonValue | |
Num EJsonValue | |
Show EJsonValue | |
IsString EJsonValue | |
ToJSON EJsonValue | A ToJSON instance is provided for EJsonValue in order to be able to take advantage of the Aeson functionality. This is not used internally. |
FromJSON EJsonValue | A FromJSON instance is provided for EJsonValue in order to be able to take advantage of the Aeson functionality. This is not used internally. |
Monoid EJsonValue |
value2EJson :: Value -> EJsonValue Source
ejson2value :: EJsonValue -> Value Source
ejobject :: [(Text, EJsonValue)] -> EJsonValue Source
ejarray :: [EJsonValue] -> EJsonValue Source
ejstring :: Text -> EJsonValue Source
ejnumber :: Scientific -> EJsonValue Source
ejbool :: Bool -> EJsonValue Source
ejdate :: EpochTime -> EJsonValue Source
ejbinary :: ByteString -> EJsonValue Source
ejuser :: Text -> EJsonValue -> EJsonValue Source