dead-simple-json-0.1.2: Dead simple JSON parser, with some Template Haskell sugar.

Safe HaskellNone

Text.DeadSimpleJSON.Types

Description

The basic JSON data types.

Synopsis

Documentation

data Value Source

A JSON value.

Constructors

String String

A JSON String, represented as ordinary Haskell String.

Number !Integer !Integer

A JSON Number, represented by two Integers in exponontial form. Number n e is the same as {n}e{exp}, that is n * 10 ^ e. This allows for arbitrary precision fixed point rationals. See Convert for easy conversions.

Object (Map String Value)

A JSON Object, represented as Map.

Array (Vector Value)

A JSON Array, represented as Vector of Values.

True

True.

False

False.

Null

Null (void, unit, ()).

newtype JSON Source

A top-level JSON object.

Merely a wrapper that ensures that no other Values but Array and Object reside at the top-level.

Constructors

JSON Value