drasil-data-formats-0.0.1: A framework for code and document generation for scientific software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Drasil.Data.Formats.JSON.Core

Contents

Synopsis

JSON

data JSON Source #

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 

Instances

Instances details
IsString JSON Source #

Using the OverloadedStrings language extension, string literals can be automatically converted to JStrings.

Instance details

Defined in Drasil.Data.Formats.JSON.Core

Methods

fromString :: String -> JSON #

Show JSON Source # 
Instance details

Defined in Drasil.Data.Formats.JSON.Core

Methods

showsPrec :: Int -> JSON -> ShowS #

show :: JSON -> String #

showList :: [JSON] -> ShowS #

Eq JSON Source # 
Instance details

Defined in Drasil.Data.Formats.JSON.Core

Methods

(==) :: JSON -> JSON -> Bool #

(/=) :: JSON -> JSON -> Bool #