Encode a JSON
Value to a
Data.Text Builder, which
can be embedded efficiently in a text-based protocol.
If you are going to immediately encode straight to a
ByteString, it is more efficient to use
encode (lazy
ByteString) or
fromEncoding . toEncoding
(ByteString.Builder) instead.
Note: Uses
toJSON