| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | Bryan O'Sullivan <bos@serpentine.com> |
| Safe Haskell | None |
Data.Aeson.Encode
Contents
Description
- encode :: ToJSON a => a -> ByteString
- encodeToByteStringBuilder :: Value -> Builder
- encodeToTextBuilder :: Value -> Builder
- fromValue :: Value -> Builder
Documentation
encode :: ToJSON a => a -> ByteStringSource
Efficiently serialize a JSON value as a lazy ByteString.
Encoding to Builders
encodeToByteStringBuilder :: Value -> BuilderSource
Encode a JSON value to a ByteString Builder. Use this function if you
must prepend or append further bytes to the encoded JSON value.
Deprecated
fromValue :: Value -> BuilderSource
Deprecated: Use encodeToTextBuilder instead