| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Derulo
Description
Derulo parses and renders JSON simply. It aims to provide an RFC 7159 compliant parser and renderer without incurring any dependencies. It is intended to be used either for learning or in situations where dependencies are unwanted. In normal usage, prefer a faster, more robust library like Aeson.
Derulo does not export any identifiers that conflict with the prelude and can be imported unqualified.
>>>import Derulo
Use readJSON to parse a JSON into a JSON value.
>>>readJSON " null "Just Null
Use showJSON to render a JSON value as a JSON.
>>>showJSON Null"null"
Documentation
A JSON value as described by RFC 7159.
Constructors
| Null | |
| Boolean Bool | |
| Number Integer Integer | |
| String String | |
| Array [JSON] | |
| Object [(String, JSON)] |