Data.Argonaut.Core
- Package
- purescript-argonaut-core
- Repository
- purescript-contrib/purescript-argonaut-core
This module defines a data type and various functions for creating and manipulating JSON values. The README contains additional documentation for this module.
#caseJsonNull Source
caseJsonNull :: forall a. a -> (Unit -> a) -> Json -> aA simpler version of caseJson which accepts a callback for when the
Json argument was null, and a default value for all other cases.
#caseJsonBoolean Source
caseJsonBoolean :: forall a. a -> (Boolean -> a) -> Json -> aA simpler version of caseJson which accepts a callback for when the
Json argument was a Boolean, and a default value for all other cases.
#caseJsonNumber Source
caseJsonNumber :: forall a. a -> (Number -> a) -> Json -> aA simpler version of caseJson which accepts a callback for when the
Json argument was a Number, and a default value for all other cases.
#caseJsonString Source
caseJsonString :: forall a. a -> (String -> a) -> Json -> aA simpler version of caseJson which accepts a callback for when the
Json argument was a String, and a default value for all other cases.
#caseJsonArray Source
caseJsonArray :: forall a. a -> (Array Json -> a) -> Json -> aA simpler version of caseJson which accepts a callback for when the
Json argument was a Array Json, and a default value for all other cases.
#caseJsonObject Source
caseJsonObject :: forall a. a -> (Object Json -> a) -> Json -> aA simpler version of caseJson which accepts a callback for when the
Json argument was an Object, and a default value for all other cases.
#fromBoolean Source
fromBoolean :: Boolean -> Json#fromNumber Source
fromNumber :: Number -> Json#fromString Source
fromString :: String -> Json#jsonSingletonArray Source
jsonSingletonArray :: Json -> Json