hschema-aeson-0.0.1.0: Describe schemas for your Haskell data types.

Safe HaskellNone
LanguageHaskell2010

Data.Schema.JSON

Contents

Synopsis

Documentation

type JsonSchema = Schema JsonType Source #

Simple JSON schema type

type JsonField o a = Field JsonSchema o a Source #

Simple JSON field type

newtype JsonSerializer a Source #

Constructors

JsonSerializer 

Fields

Orphan instances

(HasSchema a, ToJsonSerializer (PrimitivesOf a)) => ToJSON a Source # 
Instance details

Methods

toJSON :: a -> Value #

toEncoding :: a -> Encoding #

toJSONList :: [a] -> Value #

toEncodingList :: [a] -> Encoding #

(HasSchema a, ToJsonDeserializer (PrimitivesOf a)) => FromJSON a Source # 
Instance details

Methods

parseJSON :: Value -> Parser a #

parseJSONList :: Value -> Parser [a] #