Portability | portable |
---|---|
Stability | experimental |
Maintainer | Bryan O'Sullivan <bos@serpentine.com> |
Safe Haskell | None |
- encode :: ToJSON a => a -> ByteString
- encodeToTextBuilder :: Value -> Builder
- fromValue :: Value -> Builder
Documentation
encode :: ToJSON a => a -> ByteStringSource
Encode a JSON Value
as a UTF-8 encoded ByteString
.
Encoding to Text Builders
Deprecated
fromValue :: Value -> BuilderSource
Deprecated: Use encodeToTextBuilder
instead