| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Drasil.Data.Formats.JSON
Synopsis
- data JSON
- data JSONStyle
- data JSONRenderOptions
- jsonRenderOpts :: JSONStyle -> JSONRenderOptions
- renderJSON :: JSONRenderOptions -> JSON -> Doc ann
Documentation
A JSON representation conformant with RFC 8259.
Constructors
| JObject [(Text, JSON)] | Note that empty and duplicate keys are allowed, and how they are handled is up to the implementation of the reader. |
| JArray [JSON] | |
| JString Text | |
| JNumber Scientific | |
| JBool Bool | |
| JNull |
JSON Style: How the overall JSON document is formatted.
data JSONRenderOptions Source #
Options for rendering JSON.
jsonRenderOpts :: JSONStyle -> JSONRenderOptions Source #
Create JSONRenderOptions.
renderJSON :: JSONRenderOptions -> JSON -> Doc ann Source #
Render JSON to a Doc with the given options.