Module

Simple.JSON

Package
purescript-simple-json
Repository
justinwoo/purescript-simple-json

#readJSONSource

readJSON :: forall a. ReadForeign a => String -> F a

Read a JSON string to a type a using F a. Useful with record types.

#writeJSONSource

writeJSON :: forall a. WriteForeign a => a -> String

Write a JSON string from a type a.

#writeSource

write :: forall a. WriteForeign a => a -> Foreign

#readSource

read :: forall a. ReadForeign a => Foreign -> F a

#ReadForeignSource

class ReadForeign a  where

A class for reading foreign values to a type

Members

Instances

#ReadForeignFieldsSource

class ReadForeignFields (xs :: RowList) (from :: # Type) (to :: # Type) | xs -> from to where

A class for reading foreign values from properties

Members

Instances

#WriteForeignSource

class WriteForeign a  where

A class for writing a value into JSON need to do this intelligently using Foreign probably, because of null and undefined whatever

Members

Instances

#WriteForeignFieldsSource

class WriteForeignFields (rl :: RowList) row (from :: # Type) (to :: # Type) | rl -> row from to where

Members

Instances

Modules
Simple.JSON