| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Aeson.OneLine
Synopsis
- renderValue :: Value -> Text
- renderObject :: Object -> Text
- renderArray :: Array -> Text
Documentation
renderValue :: Value -> Text Source #
Show an aeson value is a one-line format with a single space after each comma and colon, which should be suitable for human reading as long as the value isn't too large.
>>>import Data.Aeson
>>>:{>>>val = object [ Text.pack "name" .= Text.pack "Alonzo">>>, Text.pack "age" .= 3 ]>>>:}
>>>(putStrLn . Text.unpack . renderValue) val{"age": 3, "name": "Alonzo"}
renderObject :: Object -> Text Source #
renderArray :: Array -> Text Source #