json-syntax-0.2.7.2: High-performance JSON parser and encoder
Safe HaskellSafe-Inferred
LanguageHaskell2010

Json.Smile

Synopsis

Encode JSON Document

encode :: Value -> Builder Source #

Encode a Json Value to the Smile binary format. This encoder does not produce backreferences.

Encode JSON Atoms

Integer

encodeBigInteger :: Integer -> Builder Source #

Encode a number using as SMILE BigInteger token type (prefix 0x26).

String

encodeString :: ShortText -> Builder Source #

Encode a string.

encodeAsciiString :: ShortText -> Builder Source #

Encode a string in which all characters are ASCII. This precondition is not checked. Resulting output will be corrupt if this condition is not satisfied.

Key

encodeKey :: ShortText -> Builder Source #

Encode a key.

encodeAsciiKey :: ShortText -> Builder Source #

Encode a key in which all characters are ASCII. This precondition is not checked. Resulting output will be corrupt if this condition is not satisfied.