| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.Data.Formats.JSON
Synopsis
- data JSON
- data JSONRenderOptions
- data JSONStyle
- jsonRenderOpts :: JSONStyle -> JSONRenderOptions
- renderJSON :: JSONRenderOptions -> JSON -> Doc ann
JSON
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 |
Rendering
data JSONRenderOptions Source #
Options for rendering JSON.
JSON Style: How the overall JSON document is formatted.
jsonRenderOpts :: JSONStyle -> JSONRenderOptions Source #
Create JSONRenderOptions.
renderJSON :: JSONRenderOptions -> JSON -> Doc ann Source #
Render JSON to a Doc with the given options.